mirror of
https://github.com/status-im/status-go.git
synced 2025-01-30 16:38:21 +00:00
Report correct number of pruned rows in Postgres mailserver (#1789)
This commit is contained in:
parent
44aa313981
commit
179e3e851e
@ -171,11 +171,15 @@ func (i *PostgresDB) Prune(t time.Time, batch int) (int, error) {
|
||||
}
|
||||
defer stmt.Close()
|
||||
|
||||
if _, err = stmt.Exec(kl.Bytes(), ku.Bytes()); err != nil {
|
||||
result, err := stmt.Exec(kl.Bytes(), ku.Bytes())
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
return 0, nil
|
||||
rows, err := result.RowsAffected()
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return int(rows), nil
|
||||
}
|
||||
|
||||
func (i *PostgresDB) SaveEnvelope(env types.Envelope) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user