feat: rename offline to web

This commit is contained in:
Mohamed Marrouchi
2024-10-22 14:03:15 +01:00
parent 1fc58f4496
commit a3d7b83511
41 changed files with 375 additions and 410 deletions

View File

@@ -223,7 +223,7 @@ export class WebsocketGateway
'Unable to load session, creating a new one ...',
err,
);
if (searchParams.get('channel') === 'offline') {
if (searchParams.get('channel') === 'web') {
return this.createAndStoreSession(client, next);
} else {
return next(new Error('Unauthorized: Unknown session ID'));
@@ -237,7 +237,7 @@ export class WebsocketGateway
return next(new Error('Unable to parse session ID from cookie'));
}
}
} else if (searchParams.get('channel') === 'offline') {
} else if (searchParams.get('channel') === 'web') {
return this.createAndStoreSession(client, next);
} else {
return next(new Error('Unauthorized to connect to WS'));