1
0
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:
Ralph Slooten 2024-01-02 23:43:35 +13:00
parent 761cd2cd2e
commit aad15945b3
2 changed files with 4 additions and 2 deletions

View File

@ -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()

View File

@ -193,6 +193,8 @@ func DeleteSearch(search string) error {
dbLastAction = time.Now()
dbDataDeleted = true
logMessagesDeleted(total)
BroadcastMailboxStats()
}