mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-26 16:03:02 +00:00
fix: adding poll to note during edit breakage
This commit is contained in:
parent
67cfa53118
commit
9a96ac02fc
1 changed files with 5 additions and 1 deletions
|
@ -438,7 +438,11 @@ export class NoteEditService implements OnApplicationShutdown {
|
||||||
userHost: user.host,
|
userHost: user.host,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!oldnote.hasPoll) {
|
||||||
|
await transactionalEntityManager.insert(MiPoll, poll);
|
||||||
|
} else {
|
||||||
await transactionalEntityManager.update(MiPoll, oldnote.id, poll);
|
await transactionalEntityManager.update(MiPoll, oldnote.id, poll);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await this.notesRepository.update(oldnote.id, note);
|
await this.notesRepository.update(oldnote.id, note);
|
||||||
|
|
Loading…
Reference in a new issue