UpdateClient updates a client.
(client *model.Client)
| 55 | |
| 56 | // UpdateClient updates a client. |
| 57 | func (d *GormDatabase) UpdateClient(client *model.Client) error { |
| 58 | return d.DB.Save(client).Error |
| 59 | } |
| 60 | |
| 61 | // UpdateClientTokensLastUsed updates the last used timestamp of clients. |
| 62 | func (d *GormDatabase) UpdateClientTokensLastUsed(tokens []string, t *time.Time) error { |