small fixes

a typo, using ongoing tx instead of making a new one, don't pass literal string
to formatting function.

found while working on quota support.
This commit is contained in:
Mechiel Lukkien
2023-12-16 11:53:14 +01:00
parent dfddf0e874
commit e048d0962b
3 changed files with 3 additions and 3 deletions

View File

@ -628,7 +628,7 @@ func (w Webmail) MessageSubmit(ctx context.Context, m SubmitMessage) {
}
}
sentmb, err := bstore.QueryDB[store.Mailbox](ctx, acc.DB).FilterEqual("Sent", true).Get()
sentmb, err := bstore.QueryTx[store.Mailbox](tx).FilterEqual("Sent", true).Get()
if err == bstore.ErrAbsent {
// There is no mailbox designated as Sent mailbox, so we're done.
return