mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Fix stupid bug in addUserForward.
This commit is contained in:
parent
b5659fe321
commit
70f6b323f2
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue