Skip to content

oneFullBook

oneFullBook #279

Triggered via push March 28, 2024 12:05
Status Failure
Total duration 1m 39s
Artifacts

push.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 2 warnings
build
Argument of type '{ _id: string; createdAt: Date; bookerId: any; serviceIds: string[]; comments: string | undefined; status: BookStatus.PENDING | BookStatus.ACCEPTED; }' is not assignable to parameter of type 'BookingRecordModel'.
build
Property 'insertId' does not exist on type 'InsertOneResult<BookingRecordModel>'. Did you mean 'insertedId'?
build
Property 'findOne' does not exist on type '{ collection: Collection<BookingRecordModel>; create: (params: BookingRecordModel) => Promise<InsertOneResult<BookingRecordModel>>; createWithAutoFields: <Z extends SharedKeys<...>>(...keys: Z[]) => (params: Omit<...>) => Promise<...>; related: <K extends "_id" | ... 6 more ... | "service", NewCollection extends "Se...'.
build
Property 'insertId' does not exist on type 'WithId<BookingRecordModel>[]'.
build
Process completed with exit code 1.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/