@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neohm/nh-cli",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "nh — Command Line Interface for neohm. NestJS projects",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -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: DataBaseEventDto<${n.entityClass}>): Promise<void> {
219
+ async handle(event: DatabaseEventDto<${n.entityClass}>): Promise<void> {
219
220
  return;
220
221
  }
221
222
  }