Skip to content

Commit 8b8d6df

Browse files
committed
demo文件新增示例化参数传入
1 parent e2a00fc commit 8b8d6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/demoSafeTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const redisCache = new RedisCache(redisBin)
3131

3232
// 初始化Mysql基本连接,后续所有模型均依赖此实例
3333
const mysqlBin = new MysqlBin(mysqlConfig)
34-
const safeTransaction = new MysqlSafeTransaction(mysqlBin)
34+
const safeTransaction = new MysqlSafeTransaction(mysqlBin, redisCache)
3535

3636
const userScheme = {
3737
userId: '' as string,

0 commit comments

Comments
 (0)