From 9f261a19d35fc5b6e78efc9530816db3de9e932c Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Fri, 22 Nov 2024 20:25:01 +0700 Subject: [PATCH] Fix createdOn be set on middleware (#7224) Signed-off-by: Andrey Sobolev --- server/middleware/src/modified.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/middleware/src/modified.ts b/server/middleware/src/modified.ts index 90d7207891..dde0704518 100644 --- a/server/middleware/src/modified.ts +++ b/server/middleware/src/modified.ts @@ -36,7 +36,7 @@ export class ModifiedMiddleware extends BaseMiddleware implements Middleware { for (const tx of txes) { if (tx.modifiedBy !== core.account.System && ctx.contextData.userEmail !== systemAccountEmail) { tx.modifiedOn = Date.now() - tx.createdOn = tx.createdOn ?? tx.modifiedOn + tx.createdOn = tx.modifiedOn } } return this.provideTx(ctx, txes)