fix: retrieve created_at for projects and handle persistent login in UI
Build and Deploy / build-and-push (push) Failing after 25s

This commit is contained in:
AI Bot
2026-09-02 10:12:54 +05:30
parent 7582d9b810
commit 04ee585c99
2 changed files with 37 additions and 23 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ app.get('/api/auth/me', authenticate, async (req, res) => {
// 4. Get all projects for user
app.get('/api/projects', authenticate, async (req, res) => {
try {
const projects = await all('SELECT id, name FROM projects WHERE user_id = ?', [req.user.id]);
const projects = await all('SELECT id, name, created_at FROM projects WHERE user_id = ?', [req.user.id]);
res.json({ projects });
} catch (err) {
res.status(500).json({ error: err.message });