Skip to content

Commit

Permalink
🔒️ do not allow vote ID to be updated via API
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Aug 3, 2022
1 parent 74cb4de commit e327210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Participant } from './participant';
id: entity => entity.find('id'),
})
export class Vote {
@Fields.autoIncrement()
@Fields.autoIncrement({ allowApiUpdate: false })
id!: number;

@Fields.string()
Expand Down

0 comments on commit e327210

Please sign in to comment.