fix (backend): add hasPoll to packed note

This commit is contained in:
naskya 2024-04-18 05:08:14 +09:00
parent 30969ad817
commit c19c439ac1
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ export const NoteRepository = db.getRepository(Note).extend({
uri: note.uri || undefined,
url: note.url || undefined,
updatedAt: note.updatedAt?.toISOString() || undefined,
hasPoll: note.hasPoll,
poll: note.hasPoll ? populatePoll(note, meId) : undefined,
...(meId
? {