Bug fix while setting identifier

This commit is contained in:
Krishna Kishore Bandaru 2023-05-02 20:07:40 +05:30
parent 6372fcb56d
commit e6ca9ec67d
2 changed files with 2 additions and 1 deletions

View File

@ -389,6 +389,7 @@
return [self loadBackgroundRequest:requestParameters dataForPage:dataForPage delegateObject:delegateObject]; return [self loadBackgroundRequest:requestParameters dataForPage:dataForPage delegateObject:delegateObject];
} else { } else {
MVMCoreLoadRequestOperation *loadOperation = [[MVMCoreLoadRequestOperation alloc] initWithRequestParameters:requestParameters dataForPage:dataForPage delegateObject:delegateObject backgroundLoad:NO]; MVMCoreLoadRequestOperation *loadOperation = [[MVMCoreLoadRequestOperation alloc] initWithRequestParameters:requestParameters dataForPage:dataForPage delegateObject:delegateObject backgroundLoad:NO];
loadOperation.identifier = requestParameters.identifier;
[self.blockingLoadQueue addOperation:loadOperation]; [self.blockingLoadQueue addOperation:loadOperation];
return loadOperation; return loadOperation;
} }
@ -396,6 +397,7 @@
- (MVMCoreLoadRequestOperation *)loadBackgroundRequest:(nonnull MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegateObject:(nullable DelegateObject *)delegateObject { - (MVMCoreLoadRequestOperation *)loadBackgroundRequest:(nonnull MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegateObject:(nullable DelegateObject *)delegateObject {
MVMCoreLoadRequestOperation *loadOperation = [[MVMCoreLoadRequestOperation alloc] initWithRequestParameters:requestParameters dataForPage:dataForPage delegateObject:delegateObject backgroundLoad:YES]; MVMCoreLoadRequestOperation *loadOperation = [[MVMCoreLoadRequestOperation alloc] initWithRequestParameters:requestParameters dataForPage:dataForPage delegateObject:delegateObject backgroundLoad:YES];
loadOperation.identifier = requestParameters.identifier;
[self.backgroundLoadQueue addOperation:loadOperation]; [self.backgroundLoadQueue addOperation:loadOperation];
return loadOperation; return loadOperation;
} }

View File

@ -48,7 +48,6 @@
self.dataForPage = dataForPage; self.dataForPage = dataForPage;
self.delegateObject = delegateObject; self.delegateObject = delegateObject;
self.backgroundLoad = backgroundLoad; self.backgroundLoad = backgroundLoad;
self.identifier = [NSUUID UUID].UUIDString;
} }
return self; return self;
} }