From 8c92d3dc028a0539fa26279dc6d30889c09a008d Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 21 Aug 2019 12:30:01 +0200 Subject: [PATCH] move metadata to the top of the file with all the other imports --- rpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc.js b/rpc.js index 37418b93f..7023fd109 100644 --- a/rpc.js +++ b/rpc.js @@ -17,6 +17,7 @@ const Saferphore = require("saferphore"); const nThen = require("nthen"); const getFolderSize = require("get-folder-size"); const Pins = require("./lib/pins"); +const Meta = require("./lib/metadata"); var RPC = module.exports; @@ -313,7 +314,6 @@ var getFileSize = function (Env, channel, cb) { }); }; -var Meta = require("./lib/metadata"); var getMetadata = function (Env, channel, cb) { if (!isValidId(channel)) { return void cb('INVALID_CHAN'); }