From b567ff82741831b04bea10501253e7eb9b04cac1 Mon Sep 17 00:00:00 2001 From: Hage Yaapa Date: Mon, 20 Aug 2018 20:35:20 +0530 Subject: [PATCH] fix: fix DELETE with invalid ID is successful #1472 fix _DELETE with invalid ID is successful #1472_ --- packages/repository/src/repositories/legacy-juggler-bridge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/repository/src/repositories/legacy-juggler-bridge.ts b/packages/repository/src/repositories/legacy-juggler-bridge.ts index 8b5732239aaa..4d2bb6ea63e3 100644 --- a/packages/repository/src/repositories/legacy-juggler-bridge.ts +++ b/packages/repository/src/repositories/legacy-juggler-bridge.ts @@ -128,7 +128,7 @@ export class DefaultCrudRepository this.modelClass = dataSource.createModel( definition.name, properties, - Object.assign({strict: true}, definition.settings), + Object.assign({strict: true}, {strictDelete: true}, definition.settings), ); this.modelClass.attachTo(dataSource); }