mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-11 06:29:29 +01:00
fix inverted error check in deleteCorrespondents
This commit is contained in:
parent
f0796b2eb5
commit
2e3e4f72ba
@ -395,7 +395,7 @@ func (mysql *MySQL) deleteCorrespondents(ctx context.Context, threshold int64) {
|
|||||||
mysql.logError("error deleting correspondents", err)
|
mysql.logError("error deleting correspondents", err)
|
||||||
} else {
|
} else {
|
||||||
count, err := result.RowsAffected()
|
count, err := result.RowsAffected()
|
||||||
if err != nil {
|
if !mysql.logError("error deleting correspondents", err) {
|
||||||
mysql.logger.Debug(fmt.Sprintf("deleted %d correspondents entries", count))
|
mysql.logger.Debug(fmt.Sprintf("deleted %d correspondents entries", count))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user