File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ const initialNotes = [
563563const nonExistingId = async () => {
564564 const note = new Note ({ content: ' willremovethissoon' , date: new Date () })
565565 await note .save ()
566- await note .remove ()
566+ await note .deleteOne ()
567567
568568 return note ._id .toString ()
569569}
Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ const initialNotes = [
556556const nonExistingId = async () => {
557557 const note = new Note ({ content: ' willremovethissoon' })
558558 await note .save ()
559- await note .remove ()
559+ await note .deleteOne ()
560560
561561 return note ._id .toString ()
562562}
Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ const initialNotes = [
580580const nonExistingId = async () => {
581581 const note = new Note ({ content: ' willremovethissoon' })
582582 await note .save ()
583- await note .remove ()
583+ await note .deleteOne ()
584584
585585 return note ._id .toString ()
586586}
Original file line number Diff line number Diff line change @@ -654,7 +654,7 @@ const initialNotes = [
654654const nonExistingId = async () => {
655655 const note = new Note ({ content: ' willremovethissoon' , date: new Date () })
656656 await note .save ()
657- await note .remove ()
657+ await note .deleteOne ()
658658
659659 return note ._id .toString ()
660660}
You can’t perform that action at this time.
0 commit comments