From 6fe281a13d50d7a0880b1ead0292d010aaac59d5 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 8 Sep 2020 14:06:08 +0100 Subject: [PATCH] Don't return sql.ErrNoRows on DeletePeeks since that is not an error condition --- syncapi/storage/shared/syncserver.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syncapi/storage/shared/syncserver.go b/syncapi/storage/shared/syncserver.go index 91d14ab3..5395b9c5 100644 --- a/syncapi/storage/shared/syncserver.go +++ b/syncapi/storage/shared/syncserver.go @@ -186,6 +186,9 @@ func (d *Database) DeletePeeks( sp, err = d.Peeks.DeletePeeks(ctx, nil, roomID, userID) return nil }) + if err == sql.ErrNoRows { + err = nil + } return }