Skip to content

Commit 4a62539

Browse files
authored
Merge pull request #3421 from sepsand/dev
Replaced in code example deprecated remove() by deleteOne()
2 parents ebba916 + 5ddf83d commit 4a62539

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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)