summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/PollService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/core/PollService.ts')
-rw-r--r--packages/backend/src/core/PollService.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/backend/src/core/PollService.ts b/packages/backend/src/core/PollService.ts
index 570f2350f1..9e1b5ca78a 100644
--- a/packages/backend/src/core/PollService.ts
+++ b/packages/backend/src/core/PollService.ts
@@ -72,10 +72,8 @@ export class PollService {
throw new Error('already voted');
}
- // Create vote
await this.pollVotesRepository.insert({
- id: this.idService.genId(),
- createdAt: new Date(),
+ id: this.idService.gen(),
noteId: note.id,
userId: user.id,
choice: choice,