fix(platformclient): Refactor debug mode checks in SzPlatformClient connectors

This commit is contained in:
2024-10-05 07:54:09 +02:00
parent edc54f4fc1
commit 854f1f73dc
8 changed files with 65 additions and 8 deletions
+9
View File
@@ -11,6 +11,15 @@ export class SzLetterConnector {
public async sendLetter(
optionsArg: plugins.servezoneInterfaces.platformservice.letter.IRequest_SendLetter['request']
) {
if (this.platformClientRef.debugMode) {
console.log('sendLetter', optionsArg);
}
if (this.platformClientRef.debugMode) {
return;
}
const typedRequest =
this.platformClientRef.typedsocket.createTypedRequest<plugins.servezoneInterfaces.platformservice.letter.IRequest_SendLetter>(
'sendLetter'