From 082bc5d4897417c01dcc7bc640b8bba36f3b73fc Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 5 Sep 2024 17:08:46 +0200 Subject: [PATCH] feat(spot): fixed sql call in spots status --- backend/pkg/spot/service/spot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/pkg/spot/service/spot.go b/backend/pkg/spot/service/spot.go index dc2765d19..da860df70 100644 --- a/backend/pkg/spot/service/spot.go +++ b/backend/pkg/spot/service/spot.go @@ -353,7 +353,7 @@ func (s *spotsImpl) SetStatus(spotID uint64, status string) error { case status == "": return fmt.Errorf("status is required") } - sql := `UPDATE spots SET status = $1, updated_at = $2 WHERE spot_id = $3 AND deleted_at IS NULL` + sql := `UPDATE spots.spots SET status = $1, updated_at = $2 WHERE spot_id = $3 AND deleted_at IS NULL` if err := s.pgconn.Exec(sql, status, time.Now(), spotID); err != nil { return err }