(className, database)
| 33 | } |
| 34 | |
| 35 | function 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 | |
| 52 | function restStatusHandler(className, config) { |
| 53 | const auth = Auth.master(config); |
no outgoing calls
no test coverage detected
searching dependent graphs…