mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
93803: Update DataService constructor signatures
Override linkPath/responseMsToLive/constructIdEndpoint - in class body for inheritable classes (for clarity: it's the first thing you'd read, variable name is right there) - in constructor for composable classes * wrapped services must be 'synchronized' with their wrapper * moved these overrides up in the argument list for emphasis (implementing a new composable feature? first thing is to use the same endpoint!)
This commit is contained in:
@@ -17,6 +17,7 @@ import { dataService } from './base/data-service.decorator';
|
||||
@Injectable()
|
||||
@dataService(ACCESS_STATUS)
|
||||
export class AccessStatusDataService extends BaseDataService<AccessStatusObject> {
|
||||
protected linkPath = 'accessStatus';
|
||||
|
||||
constructor(
|
||||
protected requestService: RequestService,
|
||||
@@ -24,7 +25,7 @@ export class AccessStatusDataService extends BaseDataService<AccessStatusObject>
|
||||
protected objectCache: ObjectCacheService,
|
||||
protected halService: HALEndpointService,
|
||||
) {
|
||||
super('accessStatus', requestService, rdbService, objectCache, halService);
|
||||
super(requestService, rdbService, objectCache, halService);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user