Manos Chorianopoulos

fix getCosmoteUser

......@@ -1950,16 +1950,12 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
[_db executeUpdate:@"INSERT INTO requestVariables (id, client_id, client_secret, access_token, refresh_token) VALUES (1, ?, ?, ?, ?)", clientId, clientSecret, accessToken, refreshToken];
NSNumber* status = [NSNumber alloc];
status = [contextResponse objectForKey:@"result"];
NSString* result = @"";
result = [status isEqual: @1] ? @"success" : @"error";
NSDictionary *successResponse = @{@"result": result, @"status": status};
NSDictionary *successResponse = @{@"result": @"success", @"status":@1};
if (success) {
success(successResponse);
}
NSLog(@"**************** WARPLY Response *****************" );
NSLog(@"%@", contextResponse );
NSLog(@"%@", successResponse );
} failureBlock:^(NSError *error) {
if (failure) {
failure(error);
......