From 0d1d30927adc702751faf68bb5be2938c0c00695 Mon Sep 17 00:00:00 2001 From: Tim Deschryver Date: Thu, 10 May 2018 04:27:52 +0200 Subject: [PATCH] fix(Schematics): Update upsert actions for entity blueprint (#1042) Closes #1039 --- .../__name@dasherize@group-actions__.actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/schematics/src/entity/files/__path__/__name@dasherize@if-flat__/__name@dasherize@group-actions__.actions.ts b/modules/schematics/src/entity/files/__path__/__name@dasherize@if-flat__/__name@dasherize@group-actions__.actions.ts index 005b1a99eb..31bec63799 100644 --- a/modules/schematics/src/entity/files/__path__/__name@dasherize@if-flat__/__name@dasherize@group-actions__.actions.ts +++ b/modules/schematics/src/entity/files/__path__/__name@dasherize@if-flat__/__name@dasherize@group-actions__.actions.ts @@ -30,7 +30,7 @@ export class Add<%= classify(name) %> implements Action { export class Upsert<%= classify(name) %> implements Action { readonly type = <%= classify(name) %>ActionTypes.Upsert<%= classify(name) %>; - constructor(public payload: { <%= camelize(name) %>: Update<<%= classify(name) %>> }) {} + constructor(public payload: { <%= camelize(name) %>: <%= classify(name) %> }) {} } export class Add<%= classify(name) %>s implements Action { @@ -42,7 +42,7 @@ export class Add<%= classify(name) %>s implements Action { export class Upsert<%= classify(name) %>s implements Action { readonly type = <%= classify(name) %>ActionTypes.Upsert<%= classify(name) %>s; - constructor(public payload: { <%= camelize(name) %>s: Update<<%= classify(name) %>>[] }) {} + constructor(public payload: { <%= camelize(name) %>s: <%= classify(name) %>[] }) {} } export class Update<%= classify(name) %> implements Action {