From 8a0de6c6dfc4cfec9d19622844a7ce62c0dbfaff Mon Sep 17 00:00:00 2001 From: Ville Heilala Date: Mon, 5 Nov 2018 21:20:25 +0200 Subject: [PATCH] Update osa4.md .remove() deprecated -> .deleteMany --- osa4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osa4.md b/osa4.md index 8ec3b4c..1c59494 100644 --- a/osa4.md +++ b/osa4.md @@ -829,7 +829,7 @@ const initialNotes = [ ] beforeAll(async () => { - await Note.remove({}) + await Note.deleteMany({}) let noteObject = new Note(initialNotes[0]) await noteObject.save()