Skip to content

Commit

Permalink
Merge pull request #53 from ngs/fix-user-pusher-id
Browse files Browse the repository at this point in the history
Fix user.pusherId
  • Loading branch information
ngs committed Mar 22, 2016
2 parents cf5ed9b + 30cebff commit 0d55703
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CI2Go/Networking/UserNetworkingExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ extension User {
autoreleasepool {
try! realm.write {
realm.add(user, update: true)
let name = user.name, login = user.login
let name = user.name, login = user.login, pusherId = user.pusherId
user.emails?.forEach { email in
let user = User()
user.name = name
user.email = email
user.login = login
user.pusherId = pusherId
realm.add(user, update: true)
}
}
Expand Down

0 comments on commit 0d55703

Please sign in to comment.