added missing event query not sorting by date

This commit is contained in:
z1glr
2025-04-01 22:09:14 +00:00
parent 7b15cfbd77
commit a1a7549073
3 changed files with 6 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
# TODO
- readme text
- check enter pressing on modals
- add availability table
- add availability notes
- readme text
- check enter pressing on modals
- add availability table
- add availability notes
- add multi-add option for events

View File

@@ -230,7 +230,7 @@ func (userName UserName) UserPending() ([]events.EventData, error) {
WHERE USER_TASKS.userName = $1
AND USER_ASSIGNMENTS.eventID = EVENTS.eventID
)
AND date > datetime('now')`, userName); err != nil {
AND date > datetime('now') ORDER BY date`, userName); err != nil {
return nil, err
} else {
return result, nil

View File

@@ -194,8 +194,6 @@ export async function getAvailabilities(): Promise<Availability[]> {
state.patch({ availabilities });
console.debug(zustand.getState().availabilities);
return availabilities;
} else {
return [];