mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
update code for karma compatibility
This commit is contained in:
@@ -8,11 +8,12 @@ module.exports = function UsersServiceFactory(
|
||||
$rootScope
|
||||
, $http
|
||||
, socket
|
||||
, CommonService
|
||||
) {
|
||||
const UsersService = {}
|
||||
|
||||
function buildQueryParameters(filters) {
|
||||
let query = ''
|
||||
var query = ''
|
||||
|
||||
if (filters.groupOwner !== 'Any') {
|
||||
query += 'groupOwner=' + filters.groupOwner.toLowerCase()
|
||||
@@ -21,7 +22,7 @@ module.exports = function UsersServiceFactory(
|
||||
}
|
||||
|
||||
UsersService.getOboeUsers = function(fields, addUser) {
|
||||
return oboe('/api/v1/users?fields=' + fields)
|
||||
return oboe(CommonService.getBaseUrl() + '/api/v1/users?fields=' + fields)
|
||||
.node('users[*]', function(user) {
|
||||
addUser(user)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user