Chore: Add context to org users (#39526)
* Add context to org users * Fix go lint * Roll back xorm refactor * Use WithTransactionalDbSession * Update sqlstore.go Fix typo * Update org_users.go Fix typo
This commit is contained in:
@@ -233,7 +233,7 @@ func TestUserDataAccess(t *testing.T) {
|
||||
}
|
||||
})
|
||||
|
||||
err = AddOrgUser(&models.AddOrgUserCommand{
|
||||
err = ss.AddOrgUser(context.Background(), &models.AddOrgUserCommand{
|
||||
LoginOrEmail: users[1].Login, Role: models.ROLE_VIEWER,
|
||||
OrgId: users[0].OrgId, UserId: users[1].Id,
|
||||
})
|
||||
@@ -284,7 +284,7 @@ func TestUserDataAccess(t *testing.T) {
|
||||
IsDisabled: false,
|
||||
}
|
||||
})
|
||||
err = AddOrgUser(&models.AddOrgUserCommand{
|
||||
err = ss.AddOrgUser(context.Background(), &models.AddOrgUserCommand{
|
||||
LoginOrEmail: users[1].Login, Role: models.ROLE_VIEWER,
|
||||
OrgId: users[0].OrgId, UserId: users[1].Id,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user