Skip to content

Commit

Permalink
ar(feat) [DPTM-8] Dockerize and GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 24, 2024
1 parent dcb94a1 commit d44052d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/model/interfaces/get-private-abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const getPrivateAbilities = async ({
},
skip: page * (limit + offset),
take: limit,
cacheStrategy: { ttl: 90, swr: 60 * 10 },
cacheStrategy: process.env.NEXUS_STANDALONE !== 'true' ? { ttl: 90, swr: 60 * 10 } : undefined,
};

if (filters?.length) {
Expand Down
2 changes: 1 addition & 1 deletion lib/model/interfaces/get-private-common-abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getPrivateCommonAbilities = async ({ page = 0, offset = 0, limit = PAGE_SI
},
skip: page * (limit + offset),
take: limit,
cacheStrategy: { ttl: 90, swr: 60 * 60 * 24 * 1 },
cacheStrategy: process.env.NEXUS_STANDALONE !== 'true' ? { ttl: 90, swr: 60 * 60 * 24 * 1 } : undefined,
};

if (filters?.length) {
Expand Down
2 changes: 1 addition & 1 deletion lib/model/interfaces/get-private-common-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getPrivateCommonServices = async ({ page = 0, offset = 0, limit = PAGE_SIZ
},
skip: page * (limit + offset),
take: limit,
cacheStrategy: { ttl: 90, swr: 60 * 60 * 24 * 1 },
cacheStrategy: process.env.NEXUS_STANDALONE !== 'true' ? { ttl: 90, swr: 60 * 60 * 24 * 1 } : undefined,
};

if (filters?.length) {
Expand Down
2 changes: 1 addition & 1 deletion lib/model/interfaces/get-private-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const getPrivateServices = async ({
},
skip: page * (limit + offset),
take: limit,
cacheStrategy: { ttl: 90, swr: 60 * 60 * 24 * 1 },
cacheStrategy: process.env.NEXUS_STANDALONE !== 'true' ? { ttl: 90, swr: 60 * 60 * 24 * 1 } : undefined,
};

if (filters?.length) {
Expand Down
2 changes: 1 addition & 1 deletion lib/model/interfaces/get-public-listings-iface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const getPublicListings = async ({ page = 0, offset = 0, limit = PAGE_SIZE, filt
const adaptQuery: any = {
skip: page * (limit + offset),
take: limit,
cacheStrategy: { ttl: 90, swr: 60 * 60 * 24 * 7 },
cacheStrategy: process.env.NEXUS_STANDALONE !== 'true' ? { ttl: 90, swr: 60 * 60 * 24 * 7 } : undefined,
};

if (filters?.length) {
Expand Down

0 comments on commit d44052d

Please sign in to comment.