Skip to content

Commit 739666a

Browse files
authored
fix(one-to-many): one to manys should not be nullable (#480)
1 parent 5d93245 commit 739666a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/BaseService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ export class BaseService<E extends Node> {
516516
options?: BaseOptionsExtended
517517
): Promise<E> {
518518
const manager = this.extractManager(options);
519-
const found = await this.findOne(where);
519+
const found = await this.findOne(where, userId, options);
520520
const updatedByIdObject: WarthogSpecialModel = this.hasColumn('updatedById')
521521
? { updatedById: userId }
522522
: {};

0 commit comments

Comments
 (0)