feat: fix tests
This commit was merged in pull request #3.
This commit is contained in:
@@ -135,10 +135,10 @@ func (db AuthSqlite) DeleteUser(userId uuid.UUID) error {
|
||||
return types.ErrInternal
|
||||
}
|
||||
|
||||
_, err = tx.Exec("DELETE FROM workout WHERE user_id = ?", userId)
|
||||
_, err = tx.Exec("DELETE FROM account WHERE group_id = ?", userId)
|
||||
if err != nil {
|
||||
_ = tx.Rollback()
|
||||
log.Error("Could not delete workouts: %v", err)
|
||||
log.Error("Could not delete accounts: %v", err)
|
||||
return types.ErrInternal
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user