We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be54b48 commit a44846eCopy full SHA for a44846e
src/services/MysqlCache.ts
@@ -155,6 +155,8 @@ export class MysqlCache<Scheme> extends MysqlNative<Scheme> {
155
async deleteCache(ids: string[], dataList: Array<CoaMysql.SafePartial<Scheme>>, trx?: CoaMysql.Transaction) {
156
if (trx && !(trx as any).clearCacheNsps) {
157
(trx as any).clearCacheNsps = [] as any
158
+ }
159
+ if (trx && (trx as any).clearCacheNsps) {
160
(trx as any).clearCacheNsps.push([this.getCacheNsp('id'), ids]);
161
(trx as any).clearCacheNsps.push([this.getCacheNsp('data'), []])
162
}
0 commit comments