File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ { {> snippets/import} }
2+ import com.algolia.client.model.search.*
3+
4+ suspend fun saveObjectsMCM() {
5+ val configurations = getAllAppIDConfigurations()
6+
7+ configurations.map { (appID, apiKey) ->
8+ val client = SearchClient(appID, apiKey)
9+
10+ try {
11+ client.{{#dynamicSnippet} }saveObjectsPlaylists{ {/dynamicSnippet} }
12+ } catch (e: Exception) {
13+ throw Exception(" Error for appID $appID: ${e.message}" )
14+ }
15+ }
16+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import algoliasearch.config.RequestOptions
66
77def saveObjectsMCM(): Future[Unit] = {
88 val configurations = getAllAppIDConfigurations()
9- val playlists = Seq(/* Your playlist objects here */)
109
1110 Future.sequence {
1211 configurations.map { case (appID, apiKey) =>
You can’t perform that action at this time.
0 commit comments