Skip to content

Commit 25e7938

Browse files
committed
Remove the request params to be saved in JobStatus
Closes parse-community#8341
1 parent b458dce commit 25e7938

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Routers/FunctionsRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class FunctionsRouter extends PromiseRouter {
7070
message: jobHandler.setMessage.bind(jobHandler),
7171
};
7272

73-
return jobHandler.setRunning(jobName, params).then(jobStatus => {
73+
return jobHandler.setRunning(jobName).then(jobStatus => {
7474
request.jobId = jobStatus.objectId;
7575
// run the function async
7676
process.nextTick(() => {

src/StatusHandler.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,11 @@ export function jobStatusHandler(config) {
7777
const objectId = newObjectId(config.objectIdSize);
7878
const database = config.database;
7979
const handler = statusHandler(JOB_STATUS_COLLECTION, database);
80-
const setRunning = function (jobName, params) {
80+
const setRunning = function (jobName) {
8181
const now = new Date();
8282
jobStatus = {
8383
objectId,
8484
jobName,
85-
params,
8685
status: 'running',
8786
source: 'api',
8887
createdAt: now,

0 commit comments

Comments
 (0)