mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-14 23:50:06 +00:00
fix(session-status): fixed stop polling session status
This commit is contained in:
@@ -168,7 +168,11 @@ export class SessionManager {
|
|||||||
const stateLink = session.links.find((l: any) => l.rel === 'state')
|
const stateLink = session.links.find((l: any) => l.rel === 'state')
|
||||||
|
|
||||||
return new Promise(async (resolve, _) => {
|
return new Promise(async (resolve, _) => {
|
||||||
if (sessionState === 'pending') {
|
if (
|
||||||
|
sessionState === 'pending' ||
|
||||||
|
sessionState === 'running' ||
|
||||||
|
sessionState === ''
|
||||||
|
) {
|
||||||
if (stateLink) {
|
if (stateLink) {
|
||||||
if (this.debug) {
|
if (this.debug) {
|
||||||
console.log('Polling session status... \n') // ?
|
console.log('Polling session status... \n') // ?
|
||||||
|
|||||||
Reference in New Issue
Block a user