Skip to content

Commit 358609e

Browse files
author
Ihar
committed
fix:add additional invalidation for retire requests
1 parent 5c89a8e commit 358609e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

api-gateway/src/api/service/contract.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ export class ContractsApi {
404404

405405
const invalidedCacheTags = [
406406
`${PREFIXES.CONTRACTS}wipe/requests`,
407+
`${PREFIXES.CONTRACTS}retire/requests`,
407408
];
408409
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
409410

@@ -453,6 +454,7 @@ export class ContractsApi {
453454

454455
const invalidedCacheTags = [
455456
`${PREFIXES.CONTRACTS}wipe/requests`,
457+
`${PREFIXES.CONTRACTS}retire/requests`,
456458
];
457459
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
458460

@@ -502,6 +504,7 @@ export class ContractsApi {
502504

503505
const invalidedCacheTags = [
504506
`${PREFIXES.CONTRACTS}wipe/requests`,
507+
`${PREFIXES.CONTRACTS}retire/requests`,
505508
];
506509
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
507510

@@ -559,6 +562,7 @@ export class ContractsApi {
559562

560563
const invalidedCacheTags = [
561564
`${PREFIXES.CONTRACTS}wipe/requests`,
565+
`${PREFIXES.CONTRACTS}retire/requests`,
562566
];
563567
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
564568

@@ -612,6 +616,7 @@ export class ContractsApi {
612616

613617
const invalidedCacheTags = [
614618
`${PREFIXES.CONTRACTS}wipe/requests`,
619+
`${PREFIXES.CONTRACTS}retire/requests`,
615620
];
616621
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
617622

@@ -669,6 +674,7 @@ export class ContractsApi {
669674

670675
const invalidedCacheTags = [
671676
`${PREFIXES.CONTRACTS}wipe/requests`,
677+
`${PREFIXES.CONTRACTS}retire/requests`,
672678
];
673679
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
674680

@@ -726,6 +732,7 @@ export class ContractsApi {
726732

727733
const invalidedCacheTags = [
728734
`${PREFIXES.CONTRACTS}wipe/requests`,
735+
`${PREFIXES.CONTRACTS}retire/requests`,
729736
];
730737
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
731738

@@ -783,6 +790,7 @@ export class ContractsApi {
783790

784791
const invalidedCacheTags = [
785792
`${PREFIXES.CONTRACTS}wipe/requests`,
793+
`${PREFIXES.CONTRACTS}retire/requests`,
786794
];
787795
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
788796

@@ -840,6 +848,7 @@ export class ContractsApi {
840848

841849
const invalidedCacheTags = [
842850
`${PREFIXES.CONTRACTS}wipe/requests`,
851+
`${PREFIXES.CONTRACTS}retire/requests`,
843852
];
844853
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
845854

@@ -897,6 +906,7 @@ export class ContractsApi {
897906

898907
const invalidedCacheTags = [
899908
`${PREFIXES.CONTRACTS}wipe/requests`,
909+
`${PREFIXES.CONTRACTS}retire/requests`,
900910
];
901911
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
902912

@@ -954,6 +964,7 @@ export class ContractsApi {
954964

955965
const invalidedCacheTags = [
956966
`${PREFIXES.CONTRACTS}wipe/requests`,
967+
`${PREFIXES.CONTRACTS}retire/requests`,
957968
];
958969
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
959970

0 commit comments

Comments
 (0)