Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ model Product {
isApproved Boolean? @default(false)
comments Comment[] // Replace Json comments with relation
reports Report[] // Add reports relation
isFeatured Boolean? @default(false)
}

model Image {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createClient, RedisClientType } from 'redis';
import { createCustomMetric } from './monitoring.js';


let client: RedisClientType | null = null;

export const getRedisClient = (): RedisClientType => {
Expand All @@ -14,7 +13,6 @@ export const getRedisClient = (): RedisClientType => {
port: 16703
}
});

client.on('error', (err: Error) => console.log('Redis Client Error', err));
}
return client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ model Product {
isApproved Boolean? @default(false)
comments Comment[] // Replace Json comments with relation
reports Report[] // Add reports relation
isFeatured Boolean? @default(false)
}

model Image {
Expand Down