Skip to content

Commit

Permalink
fix: do not vacuum during sync
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jun 28, 2024
1 parent fa6a84a commit de6b57f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion helpers/on-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async function onAuth(auth, session, fn) {
})
.populate(
'user',
`id has_imap ${config.userFields.isBanned} ${config.userFields.smtpLimit} email ${config.lastLocaleField} timezone`
`id ${config.userFields.isBanned} ${config.userFields.smtpLimit} email ${config.lastLocaleField} timezone`
)
.select('+tokens.hash +tokens.salt')
.lean()
Expand Down
8 changes: 4 additions & 4 deletions helpers/parse-payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,10 +767,10 @@ async function parsePayload(data, ws) {
}

// vacuum database
await parsePayload.call(this, {
action: 'vacuum',
session: { user: payload.session.user }
});
// await parsePayload.call(this, {
// action: 'vacuum',
// session: { user: payload.session.user }
// });

response = {
id: payload.id,
Expand Down

0 comments on commit de6b57f

Please sign in to comment.