@neohm/nh-cli 1.1.3 → 1.1.4
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/lib/templates.js +3 -2
package/package.json
CHANGED
package/src/lib/templates.js
CHANGED
|
@@ -205,9 +205,10 @@ export class ${n.subscriberClass} extends CommonSubscriber<${n.entityClass}> {
|
|
|
205
205
|
|
|
206
206
|
function job(base) {
|
|
207
207
|
const n = names(base);
|
|
208
|
-
return `import { CommonJob, QueueService } from '@neohm/nestend';
|
|
208
|
+
return `import { CommonJob, QueueService, DatabaseEventDto } from '@neohm/nestend';
|
|
209
209
|
import { Injectable } from '@nestjs/common';
|
|
210
210
|
import { JobConstants } from '../../constants/job.constants';
|
|
211
|
+
import { ${n.entityClass} } from '../entities/${n.dot}.entity';
|
|
211
212
|
|
|
212
213
|
@Injectable()
|
|
213
214
|
export class ${n.jobClass} extends CommonJob {
|
|
@@ -215,7 +216,7 @@ export class ${n.jobClass} extends CommonJob {
|
|
|
215
216
|
super(JobConstants.${n.camel}Job);
|
|
216
217
|
}
|
|
217
218
|
|
|
218
|
-
async handle(event:
|
|
219
|
+
async handle(event: DatabaseEventDto<${n.entityClass}>): Promise<void> {
|
|
219
220
|
return;
|
|
220
221
|
}
|
|
221
222
|
}
|