Skip to content

Commit 2229742

Browse files
committed
dev-demo: don't create redis adapter instance
AdminForth/1731/security-audit
1 parent b9981de commit 2229742

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dev-demo/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Express, Response } from "express";
22
import { Filters, IAdminForth, IAdminUserExpressRequest } from "adminforth";
33
import * as z from "zod";
44
import TwoFactorsAuthPlugin from "../plugins/adminforth-two-factors-auth/index.js";
5-
import { levelDbAdapter,redisAdapter } from './utils.js';
5+
import { levelDbAdapter } from './utils.js';
66

77
const DASHBOARD_CAR_SOURCES = [
88
{ resourceId: 'cars_sl', label: 'SQLite' },

dev-demo/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export const levelDbAdapter = new LevelDBKeyValueAdapter({
55
dbPath: './testdb',
66
});
77

8-
export const redisAdapter = new RedisKeyValueAdapter({
9-
redisUrl: 'redis://localhost:6379',
10-
})
8+
// export const redisAdapter = new RedisKeyValueAdapter({
9+
// redisUrl: 'redis://localhost:6379',
10+
// })

0 commit comments

Comments
 (0)