MCPcopy
hub / github.com/parse-community/parse-server / run

Method run

src/Security/Check.js:43–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 async run() {
44 // Get check as synchronous or asynchronous function
45 const check = Utils.isPromise(this.check) ? await this.check : this.check;
46
47 // Run check
48 try {
49 check();
50 this._checkState = CheckState.success;
51 } catch (e) {
52 this.stateFailError = e;
53 this._checkState = CheckState.fail;
54 }
55 }
56
57 /**
58 * Validates the constructor parameters.

Calls 2

isPromiseMethod · 0.80
checkFunction · 0.50

Tested by

no test coverage detected