feat(backend): ✨ implement API to fetch user urls and store … #12
Annotations
5 errors and 1 warning
Run npx tsc:
src/controllers/url.controller.spec.ts#L31
Argument of type '{ _id: mongoose.Types.ObjectId; code: string; longUrl: string; }' is not assignable to parameter of type '(FlattenMaps<IUrl> & { _id: ObjectId; }) | Promise<(FlattenMaps<IUrl> & { _id: ObjectId; }) | null> | null'.
|
Run npx tsc:
src/controllers/url.controller.spec.ts#L84
Argument of type '{ _id: mongoose.Types.ObjectId; code: string; longUrl: string; }' is not assignable to parameter of type '(FlattenMaps<IUrl> & { _id: ObjectId; }) | Promise<(FlattenMaps<IUrl> & { _id: ObjectId; }) | null> | null'.
|
Run npx tsc:
src/controllers/url.controller.spec.ts#L118
Argument of type '{ _id: mongoose.Types.ObjectId; code: string; longUrl: string; }' is not assignable to parameter of type '(FlattenMaps<IUrl> & { _id: ObjectId; }) | Promise<(FlattenMaps<IUrl> & { _id: ObjectId; }) | null> | null'.
|
Run npx tsc:
src/controllers/url.controller.spec.ts#L135
Argument of type '{ _id: mongoose.Types.ObjectId; code: string; longUrl: string; }' is not assignable to parameter of type '(FlattenMaps<IUrl> & { _id: ObjectId; }) | Promise<(FlattenMaps<IUrl> & { _id: ObjectId; }) | null> | null'.
|
Run npx tsc
Process completed with exit code 2.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading