We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3910376 commit 29410aaCopy full SHA for 29410aa
1 file changed
src/components/database/sqliteCompute.ts
@@ -6,6 +6,7 @@ import {
6
} from '../../@types/C2D/C2D.js'
7
import sqlite3, { RunResult } from 'sqlite3'
8
import { DATABASE_LOGGER } from '../../utils/logging/common.js'
9
+import { create256Hash } from '../../utils/crypt.js'
10
11
interface ComputeDatabaseProvider {
12
newJob(job: DBComputeJob): Promise<string>
@@ -530,6 +531,9 @@ export class SQLiteCompute implements ComputeDatabaseProvider {
530
531
const maxJobDuration = row.expireTimestamp
532
delete row.expireTimestamp
533
const job: DBComputeJob = { ...row, ...body, maxJobDuration }
534
+ if (!job.jobIdHash && job.jobId) {
535
+ job.jobIdHash = create256Hash(job.jobId)
536
+ }
537
return job
538
})
539
resolve(all)
0 commit comments