fix: need quotes on job type key

This commit is contained in:
0x330a 2023-10-11 17:52:04 +11:00
parent c1102a2a50
commit 82cbf830ae
No known key found for this signature in database
GPG Key ID: 267811D6E6A2698C
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ configurations.all {
exclude module: "commons-logging"
}
def canonicalVersionCode = 357
def canonicalVersionCode = 358
def canonicalVersionName = "1.17.3"
def postFixSize = 10

View File

@ -29,7 +29,7 @@ class SessionJobDatabase(context: Context, helper: SQLCipherOpenHelper) : Databa
= "CREATE TABLE $sessionJobTable ($jobID INTEGER PRIMARY KEY, $jobType STRING, $failureCount INTEGER DEFAULT 0, $serializedData TEXT);"
const val dropAttachmentDownloadJobs =
"DELETE FROM $sessionJobTable WHERE $jobType = ${AttachmentDownloadJob.KEY};"
"DELETE FROM $sessionJobTable WHERE $jobType = '${AttachmentDownloadJob.KEY}';"
}
fun persistJob(job: Job) {