(document, options)
| 3656 | } |
| 3657 | |
| 3658 | async function handleSuccessfulWrite(document, options) { |
| 3659 | if (document.$isNew) { |
| 3660 | _setIsNew(document, false); |
| 3661 | } |
| 3662 | |
| 3663 | document.$__reset(); |
| 3664 | document._applyVersionIncrement(); |
| 3665 | const postFilter = buildMiddlewareFilter(options, 'post'); |
| 3666 | return document.schema.s.hooks.execPost('save', document, [document], { filter: postFilter }); |
| 3667 | } |
| 3668 | |
| 3669 | /** |
| 3670 | * Apply defaults to the given document or POJO. |
no test coverage detected
searching dependent graphs…