Skip to content

Commit

Permalink
Fixed events schema & relation to stores
Browse files Browse the repository at this point in the history
  • Loading branch information
Daveed committed Jan 24, 2025
1 parent 68df24b commit 732781d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/event/content-types/event/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"type": "relation",
"relation": "manyToMany",
"target": "api::store.store",
"inversedBy": "products"
"inversedBy": "events"
},
"usd_price": {
"pluginOptions": {
Expand Down
6 changes: 6 additions & 0 deletions src/api/store/content-types/store/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
"target": "api::product.product",
"mappedBy": "stores"
},
"events": {
"type": "relation",
"relation": "manyToMany",
"target": "api::event.event",
"mappedBy": "stores"
},
"Description": {
"pluginOptions": {
"i18n": {
Expand Down
1 change: 1 addition & 0 deletions types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ export interface ApiStoreStore extends Struct.CollectionTypeSchema {
localized: true;
};
}>;
events: Schema.Attribute.Relation<'manyToMany', 'api::event.event'>;
Favicon: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'> &
Schema.Attribute.SetPluginOptions<{
i18n: {
Expand Down

0 comments on commit 732781d

Please sign in to comment.