fixed type error
Some checks are pending
auto-documentation / documentation (push) Waiting to run
build and push docker image / build-node (push) Waiting to run
Style and build test / eslint (push) Waiting to run
Style and build test / test (push) Blocked by required conditions

This commit is contained in:
stratumadev 2025-05-18 00:09:30 +02:00
parent a7c169b206
commit 154384f40a

2
adn.ts
View file

@ -518,7 +518,7 @@ export default class AnimationDigitalNetwork implements ServiceClass {
}
});
if(!streamsRequest.ok || !streamsRequest.res){
if (streamsRequest.error?.res.status == 403 || streamsRequest.res?.status == 403) {
if (streamsRequest.error?.res!.status == 403 || streamsRequest.res?.status == 403) {
console.error('Georestricted!');
} else {
console.error('Streams request failed!');