feat: 拆分测试环境

This commit is contained in:
archer
2023-04-02 23:38:28 +08:00
parent ae4243b522
commit 05b2e9e99c
9 changed files with 177 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ export const connectRedis = async () => {
await global.redisClient.connect();
// 1 - 测试库0 - 正式
await global.redisClient.select(process.env.NODE_ENV === 'development' ? 0 : 0);
await global.redisClient.SELECT(0);
return global.redisClient;
} catch (error) {