mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 04:49:00 +00:00
1623 fix (#1634)
This commit is contained in:
parent
8d7e3078e1
commit
916a8203cb
@ -48,7 +48,7 @@ const extractTx = (tx: Tx): Tx => {
|
||||
create.attributes.collection = ctx.collection
|
||||
return create
|
||||
}
|
||||
return ctx
|
||||
return ctx.tx
|
||||
}
|
||||
|
||||
return tx
|
||||
@ -136,7 +136,7 @@ export async function UpdateLastView (tx: Tx, control: TriggerControl): Promise<
|
||||
case core.class.TxMixin: {
|
||||
const tx = actualTx as TxCUD<Doc>
|
||||
const doc = (await control.findAll(tx.objectClass, { _id: tx.objectId }, { limit: 1 }))[0]
|
||||
if (doc !== undefined && !control.hierarchy.isDerived(doc._class, core.class.AttachedDoc)) {
|
||||
if (doc !== undefined) {
|
||||
const resTx = await getUpdateLastViewTx(control.findAll, doc._id, doc._class, tx.modifiedOn, tx.modifiedBy)
|
||||
if (resTx !== undefined) {
|
||||
result.push(resTx)
|
||||
|
Loading…
Reference in New Issue
Block a user