Skip to content

Commit

Permalink
Fix same key happen
Browse files Browse the repository at this point in the history
  • Loading branch information
wasuphon committed Nov 15, 2021
1 parent eb1ff12 commit 162f10f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class DeploymentSyncWorker(val context: Context, params: WorkerParameters) :
val id = fullId?.substring(fullId.lastIndexOf("/") + 1, fullId.length) ?: ""
markSentDeployment(id, db, locateDb, it.id, token)
}
result.errorBody()?.string()?.contains("id must be unique") ?: false -> {
result.errorBody()?.string()?.contains("this deploymentKey is already existed") ?: false -> {
markSentDeployment(it.deploymentKey, db, locateDb, it.id, token)
}
else -> {
Expand Down

0 comments on commit 162f10f

Please sign in to comment.