Skip to content

Commit

Permalink
change realtion
Browse files Browse the repository at this point in the history
  • Loading branch information
Xziy committed Sep 5, 2024
1 parent 6a752ab commit bebcf15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions models/MediaFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ let attributes = {
/** relations */
dish: {
collection: "dish",
via: "dish",
via: "mediafile",
through: 'selectedmediafile'
},
/** Group relation */
group: {
collection: "group",
via: "group",
via: "mediafile",
through: 'selectedmediafile'
},
};
Expand Down
4 changes: 2 additions & 2 deletions models/MediaFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ let attributes = {
/** relations */
dish: {
collection: "dish",
via: "dish",
via: "mediafile",
through: 'selectedmediafile'
} as unknown as DishRecord[] | string [],

/** Group relation */
group: {
collection: "group",
via: "group",
via: "mediafile",
through: 'selectedmediafile'
} as unknown as GroupRecord[] | string [],
};
Expand Down

0 comments on commit bebcf15

Please sign in to comment.