add mongo logging

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-28 16:24:28 +02:00
parent f76a8a5b15
commit 75c90a3d6c
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -116,6 +116,11 @@ class MongoAdapter extends MongoAdapterBase {
const domain = this.hierarchy.getDomain(tx.objectClass)
await this.db.collection(domain).updateOne({ _id: tx.objectId }, { $set: tx.operations })
}
override tx (tx: Tx): Promise<void> {
console.log('mongo', tx)
return super.tx(tx)
}
}
class MongoTxAdapter extends MongoAdapterBase implements TxAdapter {