fix: retrieve created_at for projects and handle persistent login in UI
Build and Deploy / build-and-push (push) Failing after 25s
Build and Deploy / build-and-push (push) Failing after 25s
This commit is contained in:
+1
-1
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user