Skip to content

Commit e6475e4

Browse files
committed
tweaks
1 parent 97a4857 commit e6475e4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/content/4/fi/osa4b.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ Kaikki operaation suorituksen jälkeinen koodi kirjoitetaan tapahtumankäsitteli
398398
```js
399399
Note.find({})
400400
.then(notes => {
401-
return notes[0].remove()
401+
return notes[0].deleteOne()
402402
})
403403
.then(response => {
404404
console.log('the first note is removed')
@@ -424,7 +424,7 @@ Ylempänä oleva monimutkaisempi esimerkki suoritettaisiin awaitin avulla seuraa
424424

425425
```js
426426
const notes = await Note.find({})
427-
const response = await notes[0].remove()
427+
const response = await notes[0].deleteOne()
428428

429429
console.log('the first note is removed')
430430
```
@@ -442,7 +442,7 @@ const main = async () => { // highlight-line
442442
const notes = await Note.find({})
443443
console.log('operaatio palautti seuraavat muistiinpanot', notes)
444444

445-
const response = await notes[0].remove()
445+
const response = await notes[0].deleteOne()
446446
console.log('the first note is removed')
447447
}
448448

src/content/4/fi/osa4e.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ Kaikki operaation suorituksen jälkeinen koodi kirjoitetaan tapahtumankäsitteli
737737
```js
738738
Note.find({})
739739
.then(notes => {
740-
return notes[0].remove()
740+
return notes[0].deleteOne()
741741
})
742742
.then(response => {
743743
console.log('the first note is removed')
@@ -763,7 +763,7 @@ Ylempänä oleva monimutkaisempi esimerkki suoritettaisiin awaitin avulla seuraa
763763

764764
```js
765765
const notes = await Note.find({})
766-
const response = await notes[0].remove()
766+
const response = await notes[0].deleteOne()
767767

768768
console.log('the first note is removed')
769769
```
@@ -781,7 +781,7 @@ const main = async () => { // highlight-line
781781
const notes = await Note.find({})
782782
console.log('operaatio palautti seuraavat muistiinpanot', notes)
783783

784-
const response = await notes[0].remove()
784+
const response = await notes[0].deleteOne()
785785
console.log('the first note is removed')
786786
}
787787

0 commit comments

Comments
 (0)