Skip to content

Commit cad2087

Browse files
committed
fix dbfake
1 parent 6cbb63c commit cad2087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/databasefake/databasefake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2222,7 +2222,7 @@ func (q *fakeQuerier) InsertUser(_ context.Context, arg database.InsertUserParam
22222222
defer q.mutex.Unlock()
22232223

22242224
for _, user := range q.users {
2225-
if user.Username == arg.Username {
2225+
if user.Username == arg.Username && !user.Deleted {
22262226
return database.User{}, errDuplicateKey
22272227
}
22282228
}

0 commit comments

Comments
 (0)