mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Allow using username in user queries (#1221)
* feat: Allow using username in user queries * Test needs a username/email to not match empty string
This commit is contained in:
@@ -34,7 +34,9 @@ func TestUserParam(t *testing.T) {
|
||||
})
|
||||
|
||||
user, err := db.InsertUser(r.Context(), database.InsertUserParams{
|
||||
ID: uuid.New(),
|
||||
ID: uuid.New(),
|
||||
Email: "admin@email.com",
|
||||
Username: "admin",
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user