mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 10:13:09 +02: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