Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async getPartitions(
partitionsRequest: PartitionsRequest
): Promise {
const metaRequestBilder = await this.getRequestBuilder("metadata");
const version =
partitionsRequest.getVersion() || (await this.getLatestVersion());
return MetadataApi.getPartitions(metaRequestBilder, {
version,
layerId: this.layerId
});
}
async getPartitions(
partitionsRequest: PartitionsRequest
): Promise {
const metaRequestBilder = await this.getRequestBuilder("metadata");
return MetadataApi.getPartitions(metaRequestBilder, {
layerId: this.layerId
});
}