From ad1132fb13e854a030e769fdf7689f35d363031d Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Mon, 24 Oct 2022 13:44:02 +0200 Subject: [PATCH] feat: remove limitation to refresh Cloud Jobs list only after 30 seconds (#2332) --- src/lib/ParseApp.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/ParseApp.js b/src/lib/ParseApp.js index 6cf0881f2b..7a4bb1b888 100644 --- a/src/lib/ParseApp.js +++ b/src/lib/ParseApp.js @@ -532,10 +532,6 @@ export default class ParseApp { } getJobStatus() { - // Cache it for a 30s - if (new Date() - this.jobStatus.lastFetched < 30000) { - return Promise.resolve(this.jobStatus.status); - } let query = new Parse.Query('_JobStatus'); query.descending('createdAt'); return query.find({ useMasterKey: true }).then((status) => {