mirror of
https://git.sr.ht/~roxwize/mipilin
synced 2025-05-10 23:33:07 +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
2
main.ts
2
main.ts
|
@ -100,6 +100,7 @@ object-src 'none'; base-uri 'none';"
|
|||
const feedUpdates = (
|
||||
await db
|
||||
.select({
|
||||
id: updates.id,
|
||||
user: users.name,
|
||||
mood: updates.mood,
|
||||
date: updates.date,
|
||||
|
@ -111,6 +112,7 @@ object-src 'none'; base-uri 'none';"
|
|||
.orderBy(desc(updates.date))
|
||||
).map((e) => {
|
||||
return {
|
||||
id: e.id,
|
||||
user: e.user,
|
||||
mood: moods[e.mood],
|
||||
date: e.date,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue