fix: copy mistake
This commit is contained in:
parent
5e86cf19a3
commit
80df2e2820
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ func (storage *SolutionStorage) ReadSolutionById(ctx context.Context, id int32)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (storage *SolutionStorage) DeleteSolution(ctx context.Context, id int32) error {
|
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)
|
_, err := storage.db.ExecContext(ctx, query, id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return storage.HandlePgErr(err)
|
return storage.HandlePgErr(err)
|
||||||
|
|
Loading…
Reference in a new issue