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

Method UpdateApplicationTokenLastUsed

database/application.go:79–81  ·  view source on GitHub ↗

UpdateApplicationTokenLastUsed updates the last used time of the application token.

(token string, t *time.Time)

Source from the content-addressed store, hash-verified

77
78// UpdateApplicationTokenLastUsed updates the last used time of the application token.
79func (d *GormDatabase) UpdateApplicationTokenLastUsed(token string, t *time.Time) error {
80 return d.DB.Model(&model.Application{}).Where("token = ?", token).Update("last_used", t).Error
81}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected