We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac9c3f commit 7a4de55Copy full SHA for 7a4de55
WordPress/Classes/Services/AccountService.m
@@ -156,7 +156,7 @@ - (NSManagedObjectID *)createOrUpdateAccountWithUserDetails:(RemoteUser *)remote
156
{
157
NSManagedObjectID * __block accountObjectID = nil;
158
[self.coreDataStack.mainContext performBlockAndWait:^{
159
- accountObjectID = [[WPAccount lookupDefaultWordPressComAccountInContext:self.coreDataStack.mainContext] objectID];
+ accountObjectID = [[WPAccount lookupWithUsername:remoteUser.username context:self.coreDataStack.mainContext] objectID];
160
}];
161
162
if (accountObjectID) {
0 commit comments