Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -433,7 +433,7 @@ app.post('/project/feedback', async (req, res) => {
|
|
| 433 |
// Usually, if we just gave a command, we are 'working' until the plugin polls and finishes.
|
| 434 |
// But for UI feedback, 'working' usually means "AI is generating".
|
| 435 |
// Once generated (here), we might want to set it to 'IDLE' or 'waiting_for_plugin'.
|
| 436 |
-
if(db) await db.ref(`projects/${projectId}/info/status`).set("
|
| 437 |
|
| 438 |
res.json({ success: true });
|
| 439 |
} catch (err) {
|
|
|
|
| 433 |
// Usually, if we just gave a command, we are 'working' until the plugin polls and finishes.
|
| 434 |
// But for UI feedback, 'working' usually means "AI is generating".
|
| 435 |
// Once generated (here), we might want to set it to 'IDLE' or 'waiting_for_plugin'.
|
| 436 |
+
if(db) await db.ref(`projects/${projectId}/info/status`).set("idle");
|
| 437 |
|
| 438 |
res.json({ success: true });
|
| 439 |
} catch (err) {
|