MCPcopy Create free account
hub / github.com/gotify/server / UpdateClientTokensLastUsed

Method UpdateClientTokensLastUsed

database/client.go:62–64  ·  view source on GitHub ↗

UpdateClientTokensLastUsed updates the last used timestamp of clients.

(tokens []string, t *time.Time)

Source from the content-addressed store, hash-verified

60
61// UpdateClientTokensLastUsed updates the last used timestamp of clients.
62func (d *GormDatabase) UpdateClientTokensLastUsed(tokens []string, t *time.Time) error {
63 return d.DB.Model(&model.Client{}).Where("token IN (?)", tokens).Update("last_used", t).Error
64}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected