Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -95,7 +95,7 @@ async function checkMinimumCredits(userId, type = 'basic') {
|
|
| 95 |
|
| 96 |
res.status(500).json({
|
| 97 |
insufficient: true,
|
| 98 |
-
error:`Insufficient ${type} credits. You have ${credits}, need minimum ${required} to proceed.`
|
| 99 |
|
| 100 |
});
|
| 101 |
// throw new Error(`Insufficient ${type} credits. You have ${credits}, need minimum ${required} to proceed.`);
|
|
|
|
| 95 |
|
| 96 |
res.status(500).json({
|
| 97 |
insufficient: true,
|
| 98 |
+
error:`Insufficient ${type} credits. You have ${credits}, need minimum ${required} to proceed.`
|
| 99 |
|
| 100 |
});
|
| 101 |
// throw new Error(`Insufficient ${type} credits. You have ${credits}, need minimum ${required} to proceed.`);
|