Skip to content

Commit 89346b7

Browse files
authored
feat: make instances of AuditLogService queueable (#150)
1 parent c94e124 commit 89346b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

srv/service.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const cds = require('@sap/cds')
22

3-
module.exports = class AuditLogService extends cds.Service {
3+
class AuditLogService extends cds.Service {
44
async init() {
55
// add common audit log entry fields
66
this.before('*', req => {
@@ -25,3 +25,7 @@ module.exports = class AuditLogService extends cds.Service {
2525
}
2626
}
2727
}
28+
29+
AuditLogService.prototype._is_queueable = true
30+
31+
module.exports = AuditLogService

0 commit comments

Comments
 (0)