Merge branch 'dev' into feat/um-62-prisma-property-names

This commit is contained in:
Brian Cao 2022-10-10 12:15:43 -07:00
commit 3143765954
9 changed files with 30 additions and 29 deletions

View file

@ -74,7 +74,7 @@ export function stringToColor(str) {
let color = '#';
for (let i = 0; i < 3; i++) {
let value = (hash >> (i * 8)) & 0xff;
color += ('00' + value.toString(16)).substring(-2);
color += ('00' + value.toString(16)).slice(-2);
}
return color;
}

View file

@ -70,11 +70,7 @@ async function set(key, value) {
async function connect() {
if (!redis) {
process.env.REDIS_URL && (global[REDIS] || getClient());
if (!(await redis.get(INITIALIZED))) {
await stageData();
}
redis = process.env.REDIS_URL && (global[REDIS] || getClient());
}
return redis;