Skip to content

Commit 069a2dd

Browse files
committed
解决问题
1 parent f869ab1 commit 069a2dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/MysqlCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,6 @@ export class MysqlCache<Scheme> extends MysqlNative<Scheme> {
175175
}
176176
})
177177
})
178-
if ((!trx as any).__isSafeTransaction) await this.redisCache.mDelete(deleteIds)
178+
if (!(trx as any)?.__isSafeTransaction) await this.redisCache.mDelete(deleteIds)
179179
}
180180
}

0 commit comments

Comments
 (0)