@bmstravel/nvp-plop-templates 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,7 @@ const {{pascalCase name}}Model: ISequelizeModel<I{{pascalCase name}}> = {
43
43
  type: DataTypes.STRING,
44
44
  defaultValue: function () {
45
45
  return generateUuid({ _prefix: '{{truncate (camelCase name) 4}}', length: 19, replaceDash: true })
46
- },,
46
+ },
47
47
  {{/eq}}
48
48
  primaryKey: true,
49
49
  },
@@ -32,6 +32,7 @@ const serviceName = '{{camelCase serviceName}}'
32
32
  new DbServiceMixin("{{camelCase model}}", {
33
33
  adapter: {
34
34
  model: {{camelCase model}}Model,
35
+ logging: false,
35
36
  // dbUri: Config.SEQUELIZE_URI,
36
37
  // dbType: "mysql",
37
38
  // dbHost: Config.DB_HOST,
@@ -67,19 +68,7 @@ const serviceName = '{{camelCase serviceName}}'
67
68
  name: "string|min:3",
68
69
  price: "number|positive",
69
70
  }, */
70
- },
71
- hooks: {
72
- before: {
73
- /**
74
- * Register a before hook for the `create` action.
75
- *
76
- * @param {Context} ctx
77
- */
78
- create: (_ctx: moleculer.Context<any, any>) => {
79
- // ctx.params.quantity = 0;
80
- },
81
- },
82
- },
71
+ }
83
72
  })
84
73
  @ActionService({ serviceName })
85
74
  @MethodService({ serviceName })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bmstravel/nvp-plop-templates",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "🏆 Using for plop templates",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -15,5 +15,5 @@
15
15
  "phongnv86 <phongnguyenvan86@gmail.com>",
16
16
  "phongnv86 <phongnv@media-one.vn>"
17
17
  ],
18
- "gitHead": "f4953836288d23d681cc842bf8b6bf4ee7b3760e"
18
+ "gitHead": "c5c074227eee5a84dfd178ad31324a4ba452f0dd"
19
19
  }