MCPcopy Index your code
hub / github.com/writefreely/writefreely / SetUserStatus

Method SetUserStatus

database.go:2913–2919  ·  view source on GitHub ↗

SetUserStatus changes a user's status in the database. see Users.UserStatus

(id int64, status UserStatus)

Source from the content-addressed store, hash-verified

2911
2912// SetUserStatus changes a user's status in the database. see Users.UserStatus
2913func (db *datastore) SetUserStatus(id int64, status UserStatus) error {
2914 _, err := db.Exec("UPDATE users SET status = ? WHERE id = ?", status, id)
2915 if err != nil {
2916 return fmt.Errorf("failed to update user status: %v", err)
2917 }
2918 return nil
2919}
2920
2921func (db *datastore) GetCollectionLastPostTime(id int64) (*time.Time, error) {
2922 var t time.Time

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected