From 18844d2c55c9ed1974393c2805fc6c9912d31b3f Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Fri, 24 Jul 2020 10:52:22 -0400 Subject: [PATCH] remove debug code --- src/routes.js | 70 --------------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/src/routes.js b/src/routes.js index 4e0dce0e..c0b613c1 100644 --- a/src/routes.js +++ b/src/routes.js @@ -439,76 +439,6 @@ module.exports = async ( }); - /* - const feedObj = { - feed: [ - { - id:'bd7acbea-c1b1-46c2-aed5-3ad53abb28ba', - paragraphs:[ - "SOme text and stuff 12" - "SOme text and stuff" - ], - profilePic:"", - username:"bobni", - media:[ - { - type:'VIDEO', - ratio_x: 1024, - ratio_y: 436, - magnetUri:'magnet:?xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10&dn=Sintel&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel.torrent', - }, - ] - }, - { - id:'3ac68afc-c605-48d3-a4f8-fbd91aa97f63', - paragraphs:[ - "SOme text and stuff" - ], - profilePic:"", - username:"bobni", - media:[ - { - type:'VIDEO', - ratio_x: 1920, - ratio_y: 804, - magnetUri:'magnet:?xt=urn:btih:c9e15763f722f23e98a29decdfae341b98d53056&dn=Cosmos+Laundromat&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fcosmos-laundromat.torrent', - }, - ] - }, - { - id:'58694a0f-3da1-471f-bd96-145571e29d72', - paragraphs:[ - "SOme text and stuff" - ], - profilePic:"", - username:"bobni", - media:[ - { - type:'VIDEO', - ratio_x: 1920, - ratio_y: 1080, - magnetUri:'magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fbig-buck-bunny.torrent', - }, - ] - } - ] - } - user.get("FEED_POC").put(JSON.stringify(feedObj), ack => { - if (ack.err) { - //rej(new Error(ack.err)) - }*/ - const feedObj = { - feed :{} - } - user.get("FEED_POC").put(feedObj, ack => { - if (ack.err) { - //rej(ack.err) - logger.log(ack.err) - } else { - logger.log(ack.err) - } - }) - //register to listen for channel backups const onNewChannelBackup = () => { logger.warn("Subscribing to channel backup ...")