1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-12 00:03:06 +00:00

joo can now delete mood updats

Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2025-01-31 17:07:06 -05:00
parent 0ecc741a98
commit 8e3ae72ae7
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
9 changed files with 78 additions and 13 deletions

View file

@ -114,6 +114,7 @@ export default async function (app: Express, db: NodePgDatabase) {
const userMoodFeed = (
await db
.select({
id: updates.id,
mood: updates.mood,
date: updates.date,
desc: updates.description
@ -123,6 +124,7 @@ export default async function (app: Express, db: NodePgDatabase) {
.orderBy(desc(updates.date))
).map((e) => {
return {
id: e.id,
user: user.name,
mood: moods[e.mood],
date: e.date,