feat(backend): ✨ implement API to fetch user urls and store … #12
Annotations
6 errors
|
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.
|
Loading