remove extraneous dep injection
This commit is contained in:
parent
6bdb660048
commit
d568f5780a
1 changed files with 3 additions and 8 deletions
|
|
@ -1294,10 +1294,10 @@ const setLastSeenApp = () =>
|
||||||
* @param {string[]} tags
|
* @param {string[]} tags
|
||||||
* @param {string} title
|
* @param {string} title
|
||||||
* @param {Common.Schema.ContentItem[]} content
|
* @param {Common.Schema.ContentItem[]} content
|
||||||
* @param {ISEA} SEA
|
|
||||||
* @returns {Promise<[string, Common.Schema.RawPost]>}
|
* @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} */
|
/** @type {Common.Schema.RawPost} */
|
||||||
const newPost = {
|
const newPost = {
|
||||||
date: Date.now(),
|
date: Date.now(),
|
||||||
|
|
@ -1434,12 +1434,7 @@ const createPost = async (tags, title, content) => {
|
||||||
)
|
)
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const [postID, newPost] = await createPostNew(
|
const [postID, newPost] = await createPostNew(tags, title, content)
|
||||||
tags,
|
|
||||||
title,
|
|
||||||
content,
|
|
||||||
require('../Mediator').mySEA
|
|
||||||
)
|
|
||||||
|
|
||||||
await Common.makePromise((res, rej) => {
|
await Common.makePromise((res, rej) => {
|
||||||
require('../Mediator')
|
require('../Mediator')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue