We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d46c8ed commit 8cc6e50Copy full SHA for 8cc6e50
src/services/MysqlCache.ts
@@ -49,7 +49,7 @@ export class MysqlCache<Scheme> extends MysqlNative<Scheme> {
49
async upsertById(id: string, data: CoaMysql.SafePartial<Scheme>, trx?: CoaMysql.Transaction) {
50
const dataList = await this.getCacheChangedDataList([id], data, trx)
51
const result = await super.upsertById(id, data, trx);
52
- if (result) { (trx && (trx as any).trxUpdateCacheTaskList) ? await (trx as any).trxUpdateCacheTaskList(this, [id], dataList) : await this.deleteCache([id], dataList) }
+ (trx && (trx as any).trxUpdateCacheTaskList) ? await (trx as any).trxUpdateCacheTaskList(this, [id], dataList) : await this.deleteCache([id], dataList)
53
return result
54
}
55
0 commit comments