From 80df2e282093ce42fe2cc8aaff3af76fb649b12d Mon Sep 17 00:00:00 2001 From: dragonmuffin Date: Sat, 17 Aug 2024 17:40:33 +0500 Subject: [PATCH] fix: copy mistake --- internal/storage/solution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/storage/solution.go b/internal/storage/solution.go index b3d2b01..2af6f59 100644 --- a/internal/storage/solution.go +++ b/internal/storage/solution.go @@ -66,7 +66,7 @@ func (storage *SolutionStorage) ReadSolutionById(ctx context.Context, id int32) } func (storage *SolutionStorage) DeleteSolution(ctx context.Context, id int32) error { - query := storage.db.Rebind("UPDATE solutions SET expired_at=now() WHERE id = ?") + query := storage.db.Rebind("DELETE FROM solutions WHERE id=?") _, err := storage.db.ExecContext(ctx, query, id) if err != nil { return storage.HandlePgErr(err)