fix export in electron (auth problem)

This commit is contained in:
azivner
2018-02-27 09:47:05 -05:00
parent 2acff07368
commit ee0833390a
2 changed files with 3 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ const wrap = require('express-promise-wrap').wrap;
const tar = require('tar-stream');
const sanitize = require("sanitize-filename");
router.get('/:noteId/', auth.checkApiAuth, wrap(async (req, res, next) => {
router.get('/:noteId/', auth.checkApiAuthOrElectron, wrap(async (req, res, next) => {
const noteId = req.params.noteId;
const noteTreeId = await sql.getValue('SELECT noteTreeId FROM note_tree WHERE noteId = ?', [noteId]);