refactor reserve and release endpoints in HTTP POST and DELETE methods

This commit is contained in:
Vishal Banthia
2015-12-07 17:49:34 +09:00
parent dccacea43f
commit bca180d284
6 changed files with 189 additions and 174 deletions

View File

@@ -121,7 +121,7 @@ dbapi.lookupUserByVncAuthResponse = function(response, serial) {
})
}
dbapi.loadGroup = function(email) {
dbapi.loadUserDevices = function(email) {
return db.run(r.table('devices').getAll(email, {
index: 'owner'
}))