feat: #10008, add history entry for note deletion

isekai-main
Barış Soner Uşaklı 3 years ago
parent 697dd37670
commit c26870d227

@ -71,6 +71,10 @@ flagsApi.deleteNote = async (caller, data) => {
}
await flags.deleteNote(data.flagId, data.datetime);
await flags.appendHistory(data.flagId, caller.uid, {
notes: '[[flags:note-deleted]]',
datetime: Date.now(),
});
const [notes, history] = await Promise.all([
flags.getNotes(data.flagId),

Loading…
Cancel
Save