🍕
This commit is contained in:
parent
10f6d5980f
commit
69c452a980
19 changed files with 28 additions and 748 deletions
|
|
@ -91,6 +91,8 @@ export async function deleteNote(note: string | mongo.ObjectID | INote) {
|
|||
n = note as INote;
|
||||
}
|
||||
|
||||
console.log(n == null ? `Note: delete skipped ${note}` : `Note: deleting ${n._id}`);
|
||||
|
||||
if (n == null) return;
|
||||
|
||||
// このNoteへの返信をすべて削除
|
||||
|
|
@ -132,6 +134,8 @@ export async function deleteNote(note: string | mongo.ObjectID | INote) {
|
|||
await Note.remove({
|
||||
_id: n._id
|
||||
});
|
||||
|
||||
console.log(`Note: deleted ${n._id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue