Skip to content

Commit

Permalink
CMR-10282: Update conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoroolivares2016 committed Feb 7, 2025
1 parent 8cca8d9 commit d04bafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const cacheMiddleware = (req: Request, _res: Response, next: NextFunction
cloudProviders: cachedCloudProviders,
};

if (process.env.NODE_ENV != "production") {
if (process.env.NODE_ENV !== "production") {
req.on("end", () => {
req.cache?.providers.clear();
req.cache?.cloudProviders.clear();
Expand Down

0 comments on commit d04bafb

Please sign in to comment.