added missing event query not sorting by date
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -194,8 +194,6 @@ export async function getAvailabilities(): Promise<Availability[]> {
|
||||
|
||||
state.patch({ availabilities });
|
||||
|
||||
console.debug(zustand.getState().availabilities);
|
||||
|
||||
return availabilities;
|
||||
} else {
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user