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

Commit 16a1f23

Browse files
Merge pull request #109 from babramovitch/patch-1
Update 07_Deploying_to_the_Cloud.md - Missing .coroutine causes database to no longer function.
2 parents 57591b9 + d1897b9 commit 16a1f23

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)