Skip to content

Commit

Permalink
fix: fixed user populated fields
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed May 1, 2024
1 parent 334ca70 commit 9c7b32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/smtp/on-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ async function onData(stream, _session, fn) {
// now that we have `tokenUsed` we can perform a lookup on `tokenUsed.user`
user = await Users.findById(tokenUsed.user)
.select(
`id email ${config.userFields.isBanned} ${config.userFields.smtpLimit}`
`id email ${config.userFields.isBanned} ${config.userFields.smtpLimit} smtp_rate_limit_sent_at ${config.userFields.fullEmail} ${config.lastLocaleField}`
)
.lean()
.exec();
Expand Down

0 comments on commit 9c7b32b

Please sign in to comment.