delete users

This commit is contained in:
2024-08-26 14:10:18 +02:00
parent bced6d7036
commit 3f0ddf7138
5 changed files with 67 additions and 2 deletions

View File

@ -629,5 +629,15 @@ func (m *DBModel) DeleteUser(id int) error {
if err != nil {
return err
}
stmt = `
DELETE FROM tokens
WHERE id = ?;
`
_, err = m.DB.ExecContext(ctx, stmt, id)
if err != nil {
return err
}
return nil
}