Skip to content

Commit 5ddf83d

Browse files
committed
Replaced in code example deprecated remove() by deleteOne()
1 parent e6563e3 commit 5ddf83d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/content/4/es/part4b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ const initialNotes = [
563563
const 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
}

src/content/4/fi/osa4b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ const initialNotes = [
556556
const 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
}

src/content/4/ptbr/part4b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ const initialNotes = [
580580
const 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
}

src/content/4/zh/part4b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ const initialNotes = [
654654
const 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
}

0 commit comments

Comments
 (0)