mirror of
https://github.com/axllent/mailpit.git
synced 2025-01-26 03:52:09 +02:00
Fix: Log total deleted messages when deleting all messages from search
This commit is contained in:
parent
761cd2cd2e
commit
aad15945b3
@ -686,11 +686,11 @@ func DeleteAllMessages() error {
|
||||
logger.Log().Debugf("[db] deleted %d messages in %s", total, elapsed)
|
||||
}
|
||||
|
||||
logMessagesDeleted(total)
|
||||
|
||||
dbLastAction = time.Now()
|
||||
dbDataDeleted = false
|
||||
|
||||
logMessagesDeleted(total)
|
||||
|
||||
websockets.Broadcast("prune", nil)
|
||||
BroadcastMailboxStats()
|
||||
|
||||
|
@ -193,6 +193,8 @@ func DeleteSearch(search string) error {
|
||||
dbLastAction = time.Now()
|
||||
dbDataDeleted = true
|
||||
|
||||
logMessagesDeleted(total)
|
||||
|
||||
BroadcastMailboxStats()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user