MCPcopy Index your code
hub / github.com/parse-community/parse-server / statusHandler

Function statusHandler

src/StatusHandler.js:35–50  ·  view source on GitHub ↗
(className, database)

Source from the content-addressed store, hash-verified

33}
34
35function statusHandler(className, database) {
36 function create(object) {
37 return database.create(className, object).then(() => {
38 return Promise.resolve(object);
39 });
40 }
41
42 function update(where, object) {
43 return jobPromiseQueue.enqueue(where.objectId, () => database.update(className, where, object));
44 }
45
46 return Object.freeze({
47 create,
48 update,
49 });
50}
51
52function restStatusHandler(className, config) {
53 const auth = Auth.master(config);

Callers 1

jobStatusHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…