Showing
1 changed file
with
2 additions
and
6 deletions
... | @@ -1950,16 +1950,12 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1950,16 +1950,12 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
1950 | 1950 | ||
1951 | [_db executeUpdate:@"INSERT INTO requestVariables (id, client_id, client_secret, access_token, refresh_token) VALUES (1, ?, ?, ?, ?)", clientId, clientSecret, accessToken, refreshToken]; | 1951 | [_db executeUpdate:@"INSERT INTO requestVariables (id, client_id, client_secret, access_token, refresh_token) VALUES (1, ?, ?, ?, ?)", clientId, clientSecret, accessToken, refreshToken]; |
1952 | 1952 | ||
1953 | - NSNumber* status = [NSNumber alloc]; | 1953 | + NSDictionary *successResponse = @{@"result": @"success", @"status":@1}; |
1954 | - status = [contextResponse objectForKey:@"result"]; | ||
1955 | - NSString* result = @""; | ||
1956 | - result = [status isEqual: @1] ? @"success" : @"error"; | ||
1957 | - NSDictionary *successResponse = @{@"result": result, @"status": status}; | ||
1958 | if (success) { | 1954 | if (success) { |
1959 | success(successResponse); | 1955 | success(successResponse); |
1960 | } | 1956 | } |
1961 | NSLog(@"**************** WARPLY Response *****************" ); | 1957 | NSLog(@"**************** WARPLY Response *****************" ); |
1962 | - NSLog(@"%@", contextResponse ); | 1958 | + NSLog(@"%@", successResponse ); |
1963 | } failureBlock:^(NSError *error) { | 1959 | } failureBlock:^(NSError *error) { |
1964 | if (failure) { | 1960 | if (failure) { |
1965 | failure(error); | 1961 | failure(error); | ... | ... |
-
Please register or login to post a comment