From 739666a4d4f8b43b0b406bcdcc1d787ef9319138 Mon Sep 17 00:00:00 2001 From: Dan Caddigan Date: Sat, 1 Jan 2022 14:50:27 -0500 Subject: [PATCH] fix(one-to-many): one to manys should not be nullable (#480) --- src/core/BaseService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/BaseService.ts b/src/core/BaseService.ts index 1deb8c08..401215df 100644 --- a/src/core/BaseService.ts +++ b/src/core/BaseService.ts @@ -516,7 +516,7 @@ export class BaseService { options?: BaseOptionsExtended ): Promise { const manager = this.extractManager(options); - const found = await this.findOne(where); + const found = await this.findOne(where, userId, options); const updatedByIdObject: WarthogSpecialModel = this.hasColumn('updatedById') ? { updatedById: userId } : {};