Skip to content

Commit

Permalink
fix: add polymorphic to all meeting links
Browse files Browse the repository at this point in the history
  • Loading branch information
abeforgit committed Sep 28, 2024
1 parent 847a83e commit 6c3a90b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/models/versioned-behandeling.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default class VersionedBehandelingModel extends Model {
async: true,
})
publishedResource;
@belongsTo('zitting', { inverse: null, async: true }) zitting;
@belongsTo('zitting', { inverse: null, async: true, polymorphic: true })
zitting;
@belongsTo('behandeling-van-agendapunt', {
inverse: 'versionedBehandelingen',
async: true,
Expand Down
3 changes: 2 additions & 1 deletion app/models/versioned-besluiten-lijst.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default class VersionedBesluitenLijstModel extends Model {
async: true,
})
publishedResource;
@belongsTo('zitting', { inverse: null, async: true }) zitting;
@belongsTo('zitting', { inverse: null, async: true, polymorphic: true })
zitting;
@belongsTo('editor-document', { inverse: null, async: true }) editorDocument;
}
3 changes: 2 additions & 1 deletion app/models/versioned-notulen.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default class VersionedNotulenModel extends Model {
@belongsTo('published-resource', { inverse: 'versionedNotulen', async: true })
publishedResource;
@belongsTo('editor-document', { inverse: null, async: true }) editorDocument;
@belongsTo('zitting', { inverse: null, async: true }) zitting;
@belongsTo('zitting', { inverse: null, async: true, polymorphic: true })
zitting;
@belongsTo('file', { inverse: null, async: true }) file;
}

0 comments on commit 6c3a90b

Please sign in to comment.