Skip to content

Commit

Permalink
fix: fix DELETE with invalid ID is successful #1472
Browse files Browse the repository at this point in the history
fix _DELETE with invalid ID is successful #1472_
  • Loading branch information
Hage Yaapa committed Aug 20, 2018
1 parent ea64fd2 commit b567ff8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class DefaultCrudRepository<T extends Entity, ID>
this.modelClass = dataSource.createModel<juggler.PersistedModelClass>(
definition.name,
properties,
Object.assign({strict: true}, definition.settings),
Object.assign({strict: true}, {strictDelete: true}, definition.settings),
);
this.modelClass.attachTo(dataSource);
}
Expand Down

0 comments on commit b567ff8

Please sign in to comment.