Skip to content

Commit a44846e

Browse files
committed
修改
1 parent be54b48 commit a44846e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/MysqlCache.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ export class MysqlCache<Scheme> extends MysqlNative<Scheme> {
155155
async deleteCache(ids: string[], dataList: Array<CoaMysql.SafePartial<Scheme>>, trx?: CoaMysql.Transaction) {
156156
if (trx && !(trx as any).clearCacheNsps) {
157157
(trx as any).clearCacheNsps = [] as any
158+
}
159+
if (trx && (trx as any).clearCacheNsps) {
158160
(trx as any).clearCacheNsps.push([this.getCacheNsp('id'), ids]);
159161
(trx as any).clearCacheNsps.push([this.getCacheNsp('data'), []])
160162
}

0 commit comments

Comments
 (0)