Skip to content

Commit

Permalink
add via for seleceted mf
Browse files Browse the repository at this point in the history
  • Loading branch information
Xziy committed Sep 5, 2024
1 parent bebcf15 commit 9908bcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion models/SelectedMediaFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ let attributes = {
/** Group relation */
group: {
model: "group",
via: "images"
},
/** Dish relation */
dish: {
model: "dish"
model: "dish",
via: "images"
},
};
let Model = {
Expand Down
4 changes: 3 additions & 1 deletion models/SelectedMediaFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ let attributes = {
/** Group relation */
group: {
model: "group",
via: "images"
} as unknown as GroupRecord | string,

/** Dish relation */
dish: {
model: "dish"
model: "dish",
via: "images"
} as unknown as DishRecord | string,
};

Expand Down

0 comments on commit 9908bcf

Please sign in to comment.