Skip to content

Commit aee4739

Browse files
authored
Update index.js
1 parent cee516d commit aee4739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ app.get('/job-status', async (req, res) => {
129129
if (job) {
130130
res.status(200).json({ "status_code": 200, ...job });
131131
} else {
132-
res.status(200).json({ error: "Job not found, maybe its still processing?", "status_code": 404 });
132+
res.status(200).json({ "message": "Job not found, maybe its still processing?", "status_code": 404 });
133133
}
134134
} catch (error) {
135135
console.error("Error fetching job status:", error);
136-
res.status(500).json({ error: "Internal server error" });
136+
res.status(500).json({ "message": "Internal server error", "status_code": 500 });
137137
}
138138
});
139139

0 commit comments

Comments
 (0)