Skip to content

Commit 7e2a41c

Browse files
committed
Remove console log from post-save hook in history plugin
1 parent 64e6ba5 commit 7e2a41c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/_common/plugins/mongoose/history.plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export function historyPlugin(schema: Schema, options: HistoryPluginOptions) {
115115

116116
schema.post('save', async function (after: Document | null) {
117117
const before: Document | null = this.$locals[HISTORY_PLUGIN_BEFORE_KEY] as Document | null
118-
console.log('post save fired', before)
119118
const [hasChanged, changes] = detectChanges(before, after, mergedOptions)
120119
logger.verbose(`Audit after state: ${JSON.stringify(after)}`)
121120

0 commit comments

Comments
 (0)