mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
add mongo logging
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
f76a8a5b15
commit
75c90a3d6c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user