[finishes #187354263]crud operations of items to a cart #202
Annotations
10 errors and 4 warnings
Build:
src/controllers/cartController.ts#L2
Module '"../database/models"' has no exported member 'Cart'. Did you mean to use 'import Cart from "../database/models"' instead?
|
Build:
src/controllers/cartController.ts#L2
Module '"../database/models"' has no exported member 'Product'. Did you mean to use 'import Product from "../database/models"' instead?
|
Build:
src/controllers/cartController.ts#L2
Module '"../database/models"' has no exported member 'User'. Did you mean to use 'import User from "../database/models"' instead?
|
Build:
src/controllers/cartController.ts#L14
Property 'id' does not exist on type 'User | undefined'.
|
Build:
src/controllers/cartController.ts#L23
Property 't' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
|
Build:
src/controllers/cartController.ts#L31
Property 'transaction' does not exist on type 'typeof import("/home/runner/work/e-commerce-mavericcks-bn/e-commerce-mavericcks-bn/node_modules/sequelize/types/index")'. Did you mean 'Transaction'?
|
Build:
src/controllers/cartController.ts#L37
Property 't' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
|
Build:
src/controllers/cartController.ts#L61
Parameter 'p' implicitly has an 'any' type.
|
Build:
src/controllers/cartController.ts#L64
Property 'query' does not exist on type 'typeof import("/home/runner/work/e-commerce-mavericcks-bn/e-commerce-mavericcks-bn/node_modules/sequelize/types/index")'.
|
Build:
src/controllers/cartController.ts#L102
Property 'userId' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
|
Test (20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test (20)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v2. 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/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|