Subscribe to appwrite updates; hot-reload table

This commit is contained in:
2023-05-07 19:25:05 -07:00
parent e0cf8a8236
commit 5aa0458097
4 changed files with 156 additions and 19 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ app.get('/database', (req, res) => {
})
app.get('/entry/:date', (req, res) => {
var date = strftime("%x", new Date(req.params['date']) );
var date = new Date(req.params['date']).toISOString().replace(/T.*/,"");
console.log("Fetching entry for " + date);
const promise = databases.listDocuments('lifetracker-db', 'ryan');