1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

fix(api): fixed condition in processProgram

This commit is contained in:
Yury
2024-10-31 11:17:20 +03:00
parent 4f6f735f5b
commit 48a9a4dd0e
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ export const processProgram = async (
await moveFile(codePath + '.bkp', codePath)
// we now need to poll the session status
while (session.state === SessionState.completed) {
while (session.state !== SessionState.completed) {
await delay(50)
}
} else {

View File

@@ -1,5 +1,5 @@
export enum SessionState {
initialising = 'initialising', // session is initialising and nor ready to be used yet
initialising = 'initialising', // session is initialising and not ready to be used yet
pending = 'pending', // session is ready to be used
running = 'running', // session is in use
completed = 'completed', // session is completed and can be destroyed