Skip to content

Commit

Permalink
feat: update SortedSet response types to new enum pattern (#1321)
Browse files Browse the repository at this point in the history
* feat: update SortedSet response types to new enum pattern
  • Loading branch information
cprice404 authored Jun 12, 2024
1 parent 76736ce commit 939d1c0
Show file tree
Hide file tree
Showing 19 changed files with 499 additions and 539 deletions.
8 changes: 4 additions & 4 deletions packages/client-sdk-nodejs/src/internal/cache-data-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3600,7 +3600,7 @@ export class CacheDataClient implements IDataClient {
} catch (err) {
return this.cacheServiceErrorMapper.returnOrThrowError(
err as Error,
err => new CacheSortedSetFetch.Error(err)
err => new CacheSortedSetRemoveElement.Error(err)
);
}

Expand Down Expand Up @@ -3661,7 +3661,7 @@ export class CacheDataClient implements IDataClient {
} catch (err) {
return this.cacheServiceErrorMapper.returnOrThrowError(
err as Error,
err => new CacheSortedSetFetch.Error(err)
err => new CacheSortedSetRemoveElements.Error(err)
);
}

Expand Down Expand Up @@ -3721,7 +3721,7 @@ export class CacheDataClient implements IDataClient {
} catch (err) {
return this.cacheServiceErrorMapper.returnOrThrowError(
err as Error,
err => new CacheSortedSetFetch.Error(err)
err => new CacheSortedSetLength.Error(err)
);
}

Expand Down Expand Up @@ -3784,7 +3784,7 @@ export class CacheDataClient implements IDataClient {
} catch (err) {
return this.cacheServiceErrorMapper.returnOrThrowError(
err as Error,
err => new CacheSortedSetFetch.Error(err)
err => new CacheSortedSetLengthByScore.Error(err)
);
}

Expand Down
8 changes: 4 additions & 4 deletions packages/client-sdk-web/src/internal/cache-data-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3550,7 +3550,7 @@ export class CacheDataClient<
} catch (err) {
return this.cacheServiceErrorMapper.returnOrThrowError(
err as Error,
err => new CacheSortedSetFetch.Error(err)
err => new CacheSortedSetRemoveElement.Error(err)
);
}

Expand Down Expand Up @@ -3613,7 +3613,7 @@ export class CacheDataClient<
} catch (err) {
return this.cacheServiceErrorMapper.returnOrThrowError(
err as Error,
err => new CacheSortedSetFetch.Error(err)
err => new CacheSortedSetRemoveElements.Error(err)
);
}

Expand Down Expand Up @@ -3675,7 +3675,7 @@ export class CacheDataClient<
} catch (err) {
return this.cacheServiceErrorMapper.returnOrThrowError(
err as Error,
err => new CacheSortedSetFetch.Error(err)
err => new CacheSortedSetLength.Error(err)
);
}

Expand Down Expand Up @@ -3743,7 +3743,7 @@ export class CacheDataClient<
} catch (err) {
return this.cacheServiceErrorMapper.returnOrThrowError(
err as Error,
err => new CacheSortedSetFetch.Error(err)
err => new CacheSortedSetLengthByScore.Error(err)
);
}

Expand Down
Loading

0 comments on commit 939d1c0

Please sign in to comment.