@resolveio/server-lib 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server-app.js +0 -68
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/server-app.js CHANGED
@@ -376,19 +376,6 @@ var ResolveIOMainServer = /** @class */ (function () {
376
376
  });
377
377
  }
378
378
  }
379
- else {
380
- log_collection_1.Logs.create({
381
- _id: mongoose_1.Types.ObjectId().toHexString(),
382
- date: new Date(),
383
- type: 'client-request',
384
- title: 'Client Request - Method',
385
- message: 'User: ' + ws['user'] + ', Type: ' + type + ', MessageId: ' + messageId + ', Method: ' + method,
386
- payload: 'Too Big',
387
- method: method,
388
- user: ws['user'],
389
- messageId: messageId
390
- });
391
- }
392
379
  serverRes = {
393
380
  messageId: messageId,
394
381
  hasError: false,
@@ -510,19 +497,6 @@ var ResolveIOMainServer = /** @class */ (function () {
510
497
  });
511
498
  }
512
499
  }
513
- else {
514
- log_collection_1.Logs.create({
515
- _id: mongoose_1.Types.ObjectId().toHexString(),
516
- date: new Date(),
517
- type: 'client-request',
518
- title: 'Client Request - Method Retry',
519
- message: 'User: ' + ws['user'] + ', Type: ' + type + ', MessageId: ' + messageId + ', Method: ' + method,
520
- payload: 'Too Big',
521
- method: method,
522
- user: ws['user'],
523
- messageId: messageId
524
- });
525
- }
526
500
  method_call_collection_1.MethodCalls.findOne({ $and: [
527
501
  { id_user: ws['id_user'] },
528
502
  { message_id: messageId },
@@ -563,47 +537,6 @@ var ResolveIOMainServer = /** @class */ (function () {
563
537
  }
564
538
  else if (type === 'methodResponse') {
565
539
  method = data.shift();
566
- // if (method !== 'generatePDF' && method !== 'getWOOfflineData' &&method !== 'countQuery' && method !== 'countCollectionWithQuery' && method !== 'find' && method !== 'findOne' && method !== 'findWithOptions' && method !== 'setWSAppVersion') {
567
- // if (getBinarySize(JSON.stringify(data)) < 200000) {
568
- // Logs.create({
569
- // _id: Types.ObjectId().toHexString(),
570
- // date: new Date(),
571
- // type: 'client-request',
572
- // title: 'Client Request - Method Response',
573
- // message: 'User: ' + ws['user'] + ', Type: ' + type + ', MessageId: ' + messageId + ', Method: ' + method,
574
- // payload: data,
575
- // method: method,
576
- // user: ws['user'],
577
- // messageId: messageId
578
- // });
579
- // }
580
- // else {
581
- // Logs.create({
582
- // _id: Types.ObjectId().toHexString(),
583
- // date: new Date(),
584
- // type: 'client-request',
585
- // title: 'Client Request - Method Response',
586
- // message: 'User: ' + ws['user'] + ', Type: ' + type + ', MessageId: ' + messageId + ', Method: ' + method,
587
- // payload: 'Too Big',
588
- // method: method,
589
- // user: ws['user'],
590
- // messageId: messageId
591
- // });
592
- // }
593
- // }
594
- // else {
595
- // Logs.create({
596
- // _id: Types.ObjectId().toHexString(),
597
- // date: new Date(),
598
- // type: 'client-request',
599
- // title: 'Client Request - Method Response',
600
- // message: 'User: ' + ws['user'] + ', Type: ' + type + ', MessageId: ' + messageId + ', Method: ' + method,
601
- // payload: 'Too Big',
602
- // method: method,
603
- // user: ws['user'],
604
- // messageId: messageId
605
- // });
606
- // }
607
540
  method_response_collection_1.MethodResponses.findOne({ $and: [
608
541
  { id_user: ws['id_user'] },
609
542
  { message_id: messageId },
@@ -624,7 +557,6 @@ var ResolveIOMainServer = /** @class */ (function () {
624
557
  }
625
558
  else if (type === 'support') {
626
559
  supportMethod = data.shift();
627
- // if (supportMethod !== 'countQuery' && supportMethod !== 'countCollectionWithQuery' && supportMethod !== 'find' && supportMethod !== 'findOne' && supportMethod !== 'findWithOptions' && method !== 'setWSAppVersion' && method !== 'uploadFileAndSave') {
628
560
  if (common_1.getBinarySize(JSON.stringify(data)) < 200000) {
629
561
  log_collection_1.Logs.create({
630
562
  _id: mongoose_1.Types.ObjectId().toHexString(),