1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-04 05:20:06 +00:00

fix: usage of autoexec API in DESKTOP mode

This commit is contained in:
Saad Jutt
2022-05-30 17:12:17 +05:00
parent 414fb19de3
commit 12d424acce
2 changed files with 1 additions and 8 deletions

View File

@@ -25,12 +25,6 @@ export const desktopRestrict: RequestHandler = (req, res, next) => {
next()
}
export const desktopUsername: RequestHandler = (req, res, next) => {
const { MODE } = process.env
if (MODE === ModeType.Desktop) return res.status(200).send(desktopUser)
next()
}
export const desktopUser: RequestUser = {
userId: 12345,