mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 03:59:50 +03:00
Fix createdOn be set on middleware (#7224)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
fe68f8f4c6
commit
9f261a19d3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user