template comment

This commit is contained in:
Erik 2020-04-17 23:18:16 +03:00
parent be15e50d6a
commit 34d80332ff

View File

@ -25,6 +25,18 @@ class TransactionHandler {
_send(message, options = {}) {
/** Message structure
* {
* provider: string, -- mongodb or mariadb
* request: {
* type: string, -- The function to use from this class, ex. findOne
* collection: string, -- Which collection to query from
* query: { }, -- Actual search query
* data: { } -- If the operation is to update or insert something, this is what to insert
* }
* }
*/
return new Promise((resolve, reject) => {
const id = this.transactionID;