Added reservation and username lookup
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m13s

This commit is contained in:
2024-05-13 10:49:03 -04:00
parent 4a273ccb2f
commit 78211a33ae
17 changed files with 180 additions and 72 deletions

View File

@@ -69,7 +69,7 @@ export function getSampleReservations(): Reservation[] {
user: 'John Smith',
start: '7:00',
end: '10:00',
boat: '1',
boat: '66359729003825946ae1',
status: 'confirmed',
},
{
@@ -77,7 +77,7 @@ export function getSampleReservations(): Reservation[] {
user: 'Bob Barker',
start: '16:00',
end: '19:00',
boat: '1',
boat: '66359729003825946ae1',
status: 'confirmed',
},
{
@@ -85,7 +85,7 @@ export function getSampleReservations(): Reservation[] {
user: 'Peter Parker',
start: '7:00',
end: '13:00',
boat: '4',
boat: '663597030029b71c7a9b',
status: 'tentative',
},
{
@@ -93,7 +93,7 @@ export function getSampleReservations(): Reservation[] {
user: 'Vince McMahon',
start: '10:00',
end: '13:00',
boat: '2',
boat: '663597030029b71c7a9b',
status: 'pending',
},
{
@@ -101,7 +101,7 @@ export function getSampleReservations(): Reservation[] {
user: 'Heather Graham',
start: '13:00',
end: '19:00',
boat: '4',
boat: '663596b9000235ffea55',
status: 'confirmed',
},
{
@@ -109,7 +109,7 @@ export function getSampleReservations(): Reservation[] {
user: 'Lawrence Fishburne',
start: '13:00',
end: '16:00',
boat: '3',
boat: '663596b9000235ffea55',
},
];
const boatStore = useBoatStore();
@@ -131,9 +131,11 @@ export function getSampleReservations(): Reservation[] {
return {
id: entry.id,
user: entry.user,
start: date.adjustDate(now, makeOpts(splitTime(entry.start))),
end: date.adjustDate(now, makeOpts(splitTime(entry.end))),
resource: boat,
start: date
.adjustDate(now, makeOpts(splitTime(entry.start)))
.toISOString(),
end: date.adjustDate(now, makeOpts(splitTime(entry.end))).toISOString(),
resource: boat.$id,
reservationDate: now,
status: entry.status as StatusTypes,
};