This commit is contained in:
syuilo
2018-04-15 11:57:33 +09:00
parent 10f6d5980f
commit 69c452a980
19 changed files with 28 additions and 748 deletions

View File

@ -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}`);
}
/**