Skip to content

Commit ea949b0

Browse files
committed
Do not send 0/clean for ignored actions
1 parent 67718bb commit ea949b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

encrypt-actions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export function encryptActions(client, secret, opts = {}) {
155155
client.node.options.onReceive = onReceive
156156

157157
client.log.on('clean', (action, meta) => {
158-
if (meta.sync) {
158+
if (meta.sync && !ignore.has(action.type)) {
159159
client.log.add({ id: meta.id, type: '0/clean' }, { sync: true })
160160
}
161161
})

0 commit comments

Comments
 (0)