bring up to par with master

This commit is contained in:
Daniel Lugo 2020-11-11 16:32:47 -04:00
parent 6d29062061
commit 461227a47f
2 changed files with 2 additions and 3 deletions

View file

@ -46,7 +46,7 @@ module.exports = (mainnet = false) => {
logfile: "shockapi.log", logfile: "shockapi.log",
lndLogFile: parsePath(`${lndDirectory}/logs/bitcoin/${network}/lnd.log`), lndLogFile: parsePath(`${lndDirectory}/logs/bitcoin/${network}/lnd.log`),
lndDirPath: lndDirectory, lndDirPath: lndDirectory,
peers: ['http://gun.shock.network:8765/gun'], peers: ['https://gun.shock.network:8765/gun'],
useTLS: false, useTLS: false,
tokenExpirationMS: 259200000 tokenExpirationMS: 259200000
}; };

View file

@ -36,7 +36,7 @@ const _lookupInvoice = hash =>
}) })
}) })
const _getPostTipInfo = ({ postID, page }) => const _getPostTipInfo = ({ postID }) =>
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
getUser() getUser()
.get(Key.POSTS_NEW) .get(Key.POSTS_NEW)
@ -44,7 +44,6 @@ const _getPostTipInfo = ({ postID, page }) =>
.once(post => { .once(post => {
if (post && post.date) { if (post && post.date) {
const { tipCounter, tipValue } = post const { tipCounter, tipValue } = post
console.log(post)
resolve({ resolve({
tipCounter: typeof tipCounter === 'number' ? tipCounter : 0, tipCounter: typeof tipCounter === 'number' ? tipCounter : 0,
tipValue: typeof tipValue === 'number' ? tipValue : 0 tipValue: typeof tipValue === 'number' ? tipValue : 0