Skip to content

Commit

Permalink
fix: Improovments on set close session when is timeout error
Browse files Browse the repository at this point in the history
Co-authored-by: João Neves <joao.neves@beetools.com.br>
  • Loading branch information
Neves97 and João Neves authored Oct 29, 2024
1 parent b14335f commit f52d3b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/createSessionUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export default class CreateSessionUtil {
}
} catch (e) {
req.logger.error(e);
if (e instanceof Error && e.name == "TimeoutError") {

Check failure on line 147 in src/util/createSessionUtil.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `"TimeoutError"` with `'TimeoutError'`
let client = this.getClient(session) as any;

Check failure on line 148 in src/util/createSessionUtil.ts

View workflow job for this annotation

GitHub Actions / lint

'client' is never reassigned. Use 'const' instead
client.status = 'CLOSED'

Check failure on line 149 in src/util/createSessionUtil.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `;`
}
}
}

Expand Down

0 comments on commit f52d3b6

Please sign in to comment.