parse-community / parse-server

@@ -91,7 +91,7 @@
Loading
91 91
        err &&
92 92
        err.code &&
93 93
        err.message &&
94 -
        err.code === 101 &&
94 +
        err.code === Parse.Error.OBJECT_NOT_FOUND &&
95 95
        err.message === 'Object not found.'
96 96
      ) {
97 97
        return; // nothing to update so we are good

@@ -197,7 +197,7 @@
Loading
197 197
          } catch (error) {
198 198
            Client.pushError(
199 199
              client.parseWebSocket,
200 -
              error.code || 141,
200 +
              error.code || Parse.Error.SCRIPT_FAILED,
201 201
              error.message || error,
202 202
              false,
203 203
              requestId
@@ -361,7 +361,7 @@
Loading
361 361
          } catch (error) {
362 362
            Client.pushError(
363 363
              client.parseWebSocket,
364 -
              error.code || 141,
364 +
              error.code || Parse.Error.SCRIPT_FAILED,
365 365
              error.message || error,
366 366
              false,
367 367
              requestId
@@ -682,7 +682,12 @@
Loading
682 682
      client.pushConnect();
683 683
      runLiveQueryEventHandlers(req);
684 684
    } catch (error) {
685 -
      Client.pushError(parseWebsocket, error.code || 141, error.message || error, false);
685 +
      Client.pushError(
686 +
        parseWebsocket,
687 +
        error.code || Parse.Error.SCRIPT_FAILED,
688 +
        error.message || error,
689 +
        false
690 +
      );
686 691
      logger.error(
687 692
        `Failed running beforeConnect for session ${request.sessionToken} with:\n Error: ` +
688 693
          JSON.stringify(error)
@@ -822,7 +827,13 @@
Loading
822 827
        installationId: client.installationId,
823 828
      });
824 829
    } catch (e) {
825 -
      Client.pushError(parseWebsocket, e.code || 141, e.message || e, false, request.requestId);
830 +
      Client.pushError(
831 +
        parseWebsocket,
832 +
        e.code || Parse.Error.SCRIPT_FAILED,
833 +
        e.message || e,
834 +
        false,
835 +
        request.requestId
836 +
      );
826 837
      logger.error(
827 838
        `Failed running beforeSubscribe on ${className} for session ${request.sessionToken} with:\n Error: ` +
828 839
          JSON.stringify(e)
Files Coverage
src 93.98%
Project Totals (181 files) 93.98%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading