mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Fix stupid bug in addUserForward.
This commit is contained in:
@@ -34,9 +34,10 @@ dbapi.loadUser = function(email) {
|
||||
}
|
||||
|
||||
dbapi.addUserForward = function(email, forward) {
|
||||
var devicePort = forward.devicePort
|
||||
return db.run(r.table('users').get(email).update({
|
||||
forwards: r.row('forwards').default([]).filter(function(forward) {
|
||||
return forward('devicePort').ne(forward.devicePort)
|
||||
return forward('devicePort').ne(devicePort)
|
||||
}).append(forward)
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user