From 34d80332ff0dc394c03bd6b2682ad9f7df629ed0 Mon Sep 17 00:00:00 2001 From: Navy Date: Fri, 17 Apr 2020 23:18:16 +0300 Subject: [PATCH] template comment --- structure/client/TransactionHandler.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/structure/client/TransactionHandler.js b/structure/client/TransactionHandler.js index 242e407..11e3019 100644 --- a/structure/client/TransactionHandler.js +++ b/structure/client/TransactionHandler.js @@ -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;