From 489137b24e58cf441fef62731eb95641271868c9 Mon Sep 17 00:00:00 2001 From: dhax Date: Tue, 1 Jan 2019 19:58:31 +0100 Subject: [PATCH] go-pg breaking change: use WherePK() --- database/accountStore.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/accountStore.go b/database/accountStore.go index 0f4fdc9..563634a 100644 --- a/database/accountStore.go +++ b/database/accountStore.go @@ -33,6 +33,7 @@ func (s *AccountStore) Get(id int) (*pwdless.Account, error) { func (s *AccountStore) Update(a *pwdless.Account) error { _, err := s.db.Model(a). Column("email", "name"). + WherePK(). Update() return err } @@ -59,6 +60,7 @@ func (s *AccountStore) Delete(a *pwdless.Account) error { func (s *AccountStore) UpdateToken(t *jwt.Token) error { _, err := s.db.Model(t). Column("identifier"). + WherePK(). Update() return err }