()
| 60 | } |
| 61 | |
| 62 | function saveSubdocsPreDeleteOne() { |
| 63 | const removedSubdocs = this.$__.removedSubdocs; |
| 64 | if (!removedSubdocs?.length) { |
| 65 | return; |
| 66 | } |
| 67 | |
| 68 | const options = this.$__.saveOptions; |
| 69 | const promises = []; |
| 70 | for (const subdoc of removedSubdocs) { |
| 71 | promises.push(subdoc._execDocumentPreHooks('deleteOne', options)); |
| 72 | } |
| 73 | |
| 74 | return Promise.all(promises); |
| 75 | } |
| 76 | |
| 77 | function saveSubdocsPostDeleteOne() { |
| 78 | const removedSubdocs = this.$__.removedSubdocs; |
nothing calls this directly
no outgoing calls
no test coverage detected