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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user