Skip to content

Commit a99ec8a

Browse files
authored
Merge pull request #15737 from Gautam-Bharadwaj/master
Update examples/statics/statics.js
2 parents 6598b0c + e583d2f commit a99ec8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/statics/statics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ async function run() {
2828
}
2929

3030
async function cleanup() {
31-
await Person.remove();
31+
await Person.deleteMany();
3232
mongoose.disconnect();
3333
}

0 commit comments

Comments
 (0)