Skip to content

Commit

Permalink
Update make-relations.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tysonrm authored Jul 28, 2021
1 parent 765d550 commit cd49cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/make-relations.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default function makeRelations(relations, datasource, observer) {
...args
);

if (event?.args.length > 0) {
if (event && event.args.length > 0) {
await updateForeignKeys(this, event, rel, ds);
}

Expand Down

0 comments on commit cd49cd1

Please sign in to comment.