From ffe1c78df73df7f287b8ce345d6ac0df30283723 Mon Sep 17 00:00:00 2001 From: Wojciech Stachowski Date: Sun, 24 Jan 2021 17:54:15 +0100 Subject: [PATCH] fix: allow $set null (remove association) (#774) --- src/model/model/model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/model/model.ts b/src/model/model/model.ts index 84a733f3..7f2a855b 100644 --- a/src/model/model/model.ts +++ b/src/model/model/model.ts @@ -51,7 +51,7 @@ export abstract class Model(propertyKey: keyof this, instances: R | R[] | string[] | string | number[] | number, options?: AssociationActionOptions): Promise { + $set(propertyKey: keyof this, instances: R | R[] | string[] | string | number[] | number | null, options?: AssociationActionOptions): Promise { return this['set' + capitalize(propertyKey as string)](instances, options); }