Skip to content

Upgrading to work with PayloadCMS 3.0 #23

Upgrading to work with PayloadCMS 3.0

Upgrading to work with PayloadCMS 3.0 #23

Triggered via pull request October 31, 2024 23:04
Status Failure
Total duration 27s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
build: src/utilities/GetAppointmentsForDay.ts#L21
Argument of type '(res: { docs: Service[]; }) => Service[]' is not assignable to parameter of type '(value: PaginatedDocs<JsonObject & TypeWithID>) => Service[] | PromiseLike<Service[]>'.
build: src/utilities/GetAppointmentsForDay.ts#L23
'req.query.services' is of type 'unknown'.
build: src/utilities/GetAppointmentsForDay.ts#L38
Argument of type '(res: OpeningTimes) => OpeningTimes' is not assignable to parameter of type '(value: JsonObject) => OpeningTimes | PromiseLike<OpeningTimes>'.
build: src/utilities/GetAppointmentsForDay.ts#L53
Argument of type 'unknown' is not assignable to parameter of type 'string'.
build: src/utilities/GetAppointmentsForDay.ts#L101
Argument of type '(res: { docs: Appointment[]; }) => void' is not assignable to parameter of type '(value: PaginatedDocs<JsonObject & TypeWithID>) => void | PromiseLike<void>'.
build
Process completed with exit code 2.