added missing event query not sorting by date
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
- readme text
|
- readme text
|
||||||
- check enter pressing on modals
|
- check enter pressing on modals
|
||||||
- add availability table
|
- add availability table
|
||||||
- add availability notes
|
- 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
|
WHERE USER_TASKS.userName = $1
|
||||||
AND USER_ASSIGNMENTS.eventID = EVENTS.eventID
|
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
|
return nil, err
|
||||||
} else {
|
} else {
|
||||||
return result, nil
|
return result, nil
|
||||||
|
|||||||
@@ -194,8 +194,6 @@ export async function getAvailabilities(): Promise<Availability[]> {
|
|||||||
|
|
||||||
state.patch({ availabilities });
|
state.patch({ availabilities });
|
||||||
|
|
||||||
console.debug(zustand.getState().availabilities);
|
|
||||||
|
|
||||||
return availabilities;
|
return availabilities;
|
||||||
} else {
|
} else {
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
Reference in New Issue
Block a user