Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit d1897b9

Browse files
authored
Update 07_Deploying_to_the_Cloud.md
I was performing the tutorial and it wasn't working on the server or locally. The .coroutine was missing from the earlier steps.
1 parent 57591b9 commit d1897b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Full Stack Web App with Kotlin Multiplatform/07_Deploying_to_the_Cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ val connectionString: ConnectionString? = System.getenv("MONGODB_URI")?.let {
2424
ConnectionString("$it?retryWrites=false")
2525
}
2626

27-
val client = if (connectionString != null) KMongo.createClient(connectionString) else KMongo.createClient()
27+
val client = if (connectionString != null) KMongo.createClient(connectionString).coroutine else KMongo.createClient().coroutine
2828
val database = client.getDatabase(connectionString?.database ?: "shoppingList")
2929
```
3030

0 commit comments

Comments
 (0)