rename methods
This commit is contained in:
1 parent
69bcd07c01
commit
79abb0fd84
1 file changed
+2
-2
@@ -23,7 +23,7 @@ class JobQueueController {
|
|||||||
|
|
||||||
getJobs = async (req, res, next) => {
|
getJobs = async (req, res, next) => {
|
||||||
try {
|
try {
|
||||||
const jobs = await this.jobQueue.getJobStats();
|
const jobs = await this.jobQueue.getJobs();
|
||||||
return res.success({
|
return res.success({
|
||||||
msg: this.stringService.queueGetMetrics,
|
msg: this.stringService.queueGetMetrics,
|
||||||
data: jobs,
|
data: jobs,
|
||||||
@@ -60,7 +60,7 @@ class JobQueueController {
|
|||||||
|
|
||||||
flushQueue = async (req, res, next) => {
|
flushQueue = async (req, res, next) => {
|
||||||
try {
|
try {
|
||||||
const result = await this.jobQueue.flushQueue();
|
const result = await this.jobQueue.flushQueues();
|
||||||
return res.success({
|
return res.success({
|
||||||
msg: this.stringService.jobQueueFlush,
|
msg: this.stringService.jobQueueFlush,
|
||||||
data: result,
|
data: result,
|
||||||
|
|||||||
Reference in new issue
Block a user