Skip to content

Commit

Permalink
fix(Schematics): update upsert blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed May 9, 2018
1 parent c0893f1 commit 505494a
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 505494a

Please sign in to comment.