move metadata to the top of the file with all the other imports

pull/1/head
ansuz 5 years ago
parent c5ca82f0e1
commit 8c92d3dc02

@ -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'); }

Loading…
Cancel
Save