mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-22 14:25:28 +00:00
fix delete too
This commit is contained in:
parent
119ec8cc52
commit
4a7173ea9d
1 changed files with 1 additions and 1 deletions
|
@ -285,6 +285,6 @@ func (p *postgresWatcherRepository) Delete(ctx context.Context, id int64) error
|
|||
|
||||
func (p *postgresWatcherRepository) DeleteByTypeAndWatcheeID(ctx context.Context, typ domain.WatcherType, id int64) error {
|
||||
query := `DELETE FROM watchers WHERE type = $1 AND watchee_id = $2`
|
||||
_, err := p.conn.Exec(ctx, query, typ, id)
|
||||
_, err := p.conn.Exec(ctx, query, int64(typ), id)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue