This commit is contained in:
lbenedar
2026-03-06 15:53:59 +03:00
parent 126ccfa715
commit 8d3c025660
4 changed files with 20 additions and 13 deletions

View File

@@ -74,6 +74,5 @@ func (m *UserModel) Exists(id int) (bool, error) {
stmt := `SELECT EXISTS(SELECT true FROM users WHERE id = ?)`
err := m.DB.QueryRow(stmt, id).Scan(&exists)
return exists, err
}