From d568f5780ad750f7c8de866e58d472fd06b18203 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 22 Feb 2021 16:43:19 -0400 Subject: [PATCH] remove extraneous dep injection --- services/gunDB/contact-api/actions.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index 062f0f24..e1fd403b 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -1294,10 +1294,10 @@ const setLastSeenApp = () => * @param {string[]} tags * @param {string} title * @param {Common.Schema.ContentItem[]} content - * @param {ISEA} SEA * @returns {Promise<[string, Common.Schema.RawPost]>} */ -const createPostNew = async (tags, title, content, SEA) => { +const createPostNew = async (tags, title, content) => { + const SEA = require('../Mediator').mySEA /** @type {Common.Schema.RawPost} */ const newPost = { date: Date.now(), @@ -1434,12 +1434,7 @@ const createPost = async (tags, title, content) => { ) })) - const [postID, newPost] = await createPostNew( - tags, - title, - content, - require('../Mediator').mySEA - ) + const [postID, newPost] = await createPostNew(tags, title, content) await Common.makePromise((res, rej) => { require('../Mediator')