Skip to content

Commit

Permalink
fix setLoggingEnabled for js
Browse files Browse the repository at this point in the history
  • Loading branch information
nbransby committed May 5, 2024
1 parent 2b5afa4 commit b0dd8ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ actual class FirebaseFirestore(jsFirestore: Firestore) {
actual fun batch() = rethrow { WriteBatch(writeBatch(js)) }

actual fun setLoggingEnabled(loggingEnabled: Boolean) =
rethrow { setLogLevel( if(loggingEnabled) "error" else "silent") }
rethrow { setLogLevel( if(loggingEnabled) "debug" else "silent") }

actual suspend fun <T> runTransaction(func: suspend Transaction.() -> T) =
rethrow { runTransaction(js, { GlobalScope.promise { Transaction(it).func() } } ).await() }
Expand Down

0 comments on commit b0dd8ec

Please sign in to comment.