Skip to content

Commit

Permalink
fix(one-to-many): one to manys should not be nullable (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldcaddy77 authored Jan 1, 2022
1 parent 5d93245 commit 739666a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/BaseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export class BaseService<E extends Node> {
options?: BaseOptionsExtended
): Promise<E> {
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 }
: {};
Expand Down

0 comments on commit 739666a

Please sign in to comment.