everydaycats commited on
Commit
405323f
·
verified ·
1 Parent(s): 53d2920

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +1 -1
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("working");
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) {