This commit is contained in:
boufni95 2020-05-09 18:23:31 +02:00 committed by Daniel Lugo
parent b46bb82962
commit c167276976

View file

@ -1614,8 +1614,9 @@ module.exports = async (
const SEA = require('../services/gunDB/Mediator').mySEA
const mySecret = require('../services/gunDB/Mediator').getMySecret()
const encBackup = await user.get(Key.CHANNELS_BACKUP).then()
const encBackup = await timeout5(user.get(Key.CHANNELS_BACKUP).then())
const backup = await SEA.decrypt(encBackup,mySecret)
logger.info(backup)
res.json({data:backup})
} catch (err) {
res.json({ok:"err"})