order assignment options by weight

This commit is contained in:
Finn Stutzenstein 2021-03-01 14:40:06 +01:00
parent e75bdeb0f7
commit 0a8274e6e2
No known key found for this signature in database
GPG Key ID: 9042F605C6324654
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ const AssignmentPollRelations: RelationDefinition[] = [
type: 'O2M',
ownIdKey: 'options_id',
ownKey: 'options',
foreignViewModel: ViewAssignmentOption
foreignViewModel: ViewAssignmentOption,
order: 'weight'
},
{
type: 'M2O',