feat(spot): fixed sql call in spots status
This commit is contained in:
parent
b46bcee817
commit
082bc5d489
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue