MCPcopy Index your code
hub / github.com/gotify/server / UpdateClient

Method UpdateClient

database/client.go:57–59  ·  view source on GitHub ↗

UpdateClient updates a client.

(client *model.Client)

Source from the content-addressed store, hash-verified

55
56// UpdateClient updates a client.
57func (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.
62func (d *GormDatabase) UpdateClientTokensLastUsed(tokens []string, t *time.Time) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.65

Tested by

no test coverage detected