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:
parent
0ecc741a98
commit
8e3ae72ae7
9 changed files with 78 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue