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

View file

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