mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-31 12:19:47 +02:00
1623 fix (#1634)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user