From 5022c2164059bcc148805ec9734044c0bd0b8a91 Mon Sep 17 00:00:00 2001 From: "Xc@centOs" Date: Thu, 12 Jan 2023 17:09:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=8B=E5=88=9D=E5=80=BC=E6=97=B6=E7=BB=99de?= =?UTF-8?q?leteAt=E8=B5=8Bnull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/store/CascadeStore.js | 1 + src/store/CascadeStore.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/store/CascadeStore.js b/lib/store/CascadeStore.js index 5024436..b57b6b0 100644 --- a/lib/store/CascadeStore.js +++ b/lib/store/CascadeStore.js @@ -685,6 +685,7 @@ var CascadeStore = /** @class */ (function (_super) { Object.assign(data2, (_b = {}, _b[Entity_1.CreateAtAttribute] = now, _b[Entity_1.UpdateAtAttribute] = now, + _b[Entity_1.DeleteAtAttribute] = null, _b)); }; if (data instanceof Array) { diff --git a/src/store/CascadeStore.ts b/src/store/CascadeStore.ts index dc9e604..37a05ed 100644 --- a/src/store/CascadeStore.ts +++ b/src/store/CascadeStore.ts @@ -1,7 +1,7 @@ import assert from "assert"; import { EntityDict, - OperateOption, SelectOption, OperationResult, DeduceFilter, CreateAtAttribute, UpdateAtAttribute, AggregationResult + OperateOption, SelectOption, OperationResult, DeduceFilter, CreateAtAttribute, UpdateAtAttribute, AggregationResult, DeleteAtAttribute } from "../types/Entity"; import { EntityDict as BaseEntityDict } from '../base-app-domain'; import { RowStore } from '../types/RowStore'; @@ -816,6 +816,7 @@ export abstract class CascadeStore exten Object.assign(data2, { [CreateAtAttribute]: now, [UpdateAtAttribute]: now, + [DeleteAtAttribute]: null, }); } if (data instanceof Array) {