Skip to content

Commit fc3a849

Browse files
committed
wip
closes#235, closes#236
1 parent ca21c4e commit fc3a849

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lib/server/db/getTours.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const getToursWithRequests = async (
7676
companyId?: number,
7777
timeRange?: [UnixtimeMs, UnixtimeMs]
7878
) => {
79-
console.log({companyId})
79+
console.log({ companyId });
8080
return await db
8181
.selectFrom('tour')
8282
.innerJoin('vehicle', 'vehicle.id', 'tour.vehicle')

src/lib/ui/SortableTable.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<Table.Body>
7171
{#each rows as row}
7272
<Table.Row
73-
class={`${isTourWithRequests(row) && (row as TourWithRequests).cancelled ? 'bg-destructive cursor-pointer' : 'bg-white-0'}`}
73+
class={`${isTourWithRequests(row) && (row as TourWithRequests).cancelled ? 'cursor-pointer bg-destructive' : 'bg-white-0'}`}
7474
onclick={() => {
7575
if (rows.length != 0 && isTourWithRequests(rows[0])) {
7676
selectedTour = {

src/routes/taxi/availability/+page.server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { msg } from '$lib/msg';
77
import { readInt } from '$lib/server/util/readForm';
88

99
export async function load(event: RequestEvent) {
10-
const companyId = event.locals.session?.companyId!;
10+
const companyId = event.locals.session?.companyId;
1111
if (!companyId) {
1212
throw 'company not defined';
1313
}

src/routes/taxi/availability/+page.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
copy.setHours(todayDay.getHours() + 8);
123123
return copy;
124124
});
125-
console.log({tours:data.tours})
125+
console.log({ tours: data.tours });
126126
const overlaps = (a: Range, b: Range) => a.startTime < b.endTime && a.endTime > b.startTime;
127127
128128
const hasTour = (vehicleId: number, cell: Range) =>

0 commit comments

Comments
 (0)