pg-boss 10.0.0-beta18 → 10.0.0-beta19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/manager.js +3 -3
- package/types.d.ts +2 -2
package/package.json
CHANGED
package/src/manager.js
CHANGED
|
@@ -69,7 +69,7 @@ class Manager extends EventEmitter {
|
|
|
69
69
|
this.complete,
|
|
70
70
|
this.cancel,
|
|
71
71
|
this.resume,
|
|
72
|
-
this.
|
|
72
|
+
this.deleteJob,
|
|
73
73
|
this.fail,
|
|
74
74
|
this.fetch,
|
|
75
75
|
this.work,
|
|
@@ -498,10 +498,10 @@ class Manager extends EventEmitter {
|
|
|
498
498
|
return this.mapCommandResponse(ids, result)
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
async
|
|
501
|
+
async deleteJob (name, id, options = {}) {
|
|
502
502
|
Attorney.assertQueueName(name)
|
|
503
503
|
const db = options.db || this.db
|
|
504
|
-
const ids = this.mapCompletionIdArg(id, '
|
|
504
|
+
const ids = this.mapCompletionIdArg(id, 'deleteJob')
|
|
505
505
|
const result = await db.executeSql(this.deleteJobsCommand, [name, ids])
|
|
506
506
|
return this.mapCommandResponse(ids, result)
|
|
507
507
|
}
|
package/types.d.ts
CHANGED
|
@@ -332,8 +332,8 @@ declare class PgBoss extends EventEmitter {
|
|
|
332
332
|
resume(name: string, id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
333
333
|
resume(name: string, ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
334
334
|
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
deleteJob(name: string, id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
336
|
+
deleteJob(name: string, ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
337
337
|
|
|
338
338
|
complete(name: string, id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
339
339
|
complete(name: string, id: string, data: object, options?: PgBoss.ConnectionOptions): Promise<void>;
|