Skip to content

Commit

Permalink
fix(Schematics): Update upsert actions for entity blueprint (#1042)
Browse files Browse the repository at this point in the history
Closes #1039
  • Loading branch information
timdeschryver authored and brandonroberts committed May 10, 2018
1 parent 6d4ec0d commit 0d1d309
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 0d1d309

Please sign in to comment.