log
This commit is contained in:
parent
b46bb82962
commit
c167276976
1 changed files with 8 additions and 7 deletions
|
|
@ -1614,8 +1614,9 @@ module.exports = async (
|
||||||
|
|
||||||
const SEA = require('../services/gunDB/Mediator').mySEA
|
const SEA = require('../services/gunDB/Mediator').mySEA
|
||||||
const mySecret = require('../services/gunDB/Mediator').getMySecret()
|
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)
|
const backup = await SEA.decrypt(encBackup,mySecret)
|
||||||
|
logger.info(backup)
|
||||||
res.json({data:backup})
|
res.json({data:backup})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
res.json({ok:"err"})
|
res.json({ok:"err"})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue