Deleting favorite masterplan deletes user
Deleting favorite master plan cascades delete user
[2024-05-20T09:12:46.404Z] INFO: Express server started on port: 4010
[2024-05-20T09:17:35.866Z] ERROR: InvalidContextError: Invalid use of jwt
at expressAuthentication (/home/kaller/servers/LiUtils/backend/dist/authentication.js:36:31)
at runAuthenticationMiddleware (/home/kaller/servers/LiUtils/backend/dist/routes.js:537:93)
at newFn (/home/kaller/servers/LiUtils/backend/node_modules/express-async-errors/index.js:16:20)
at Layer.handle [as handle_request] (/home/kaller/servers/LiUtils/backend/node_modules/express/lib/router/layer.js:95:5)
at next (/home/kaller/servers/LiUtils/backend/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch (/home/kaller/servers/LiUtils/backend/node_modules/express/lib/router/route.js:119:3)
at newFn (/home/kaller/servers/LiUtils/backend/node_modules/express-async-errors/index.js:16:20)
at Layer.handle [as handle_request] (/home/kaller/servers/LiUtils/backend/node_modules/express/lib/router/layer.js:95:5)
at /home/kaller/servers/LiUtils/backend/node_modules/express/lib/router/index.js:284:15
at param (/home/kaller/servers/LiUtils/backend/node_modules/express/lib/router/index.js:365:14) {
status: 401
}
[2024-05-20T09:41:55.333Z] ERROR: Error: Not found
at Object.findById (/home/kaller/servers/LiUtils/backend/dist/repos/UserRepo.js:47:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MasterPlanController.getMyChoosenMasterPlan (/home/kaller/servers/LiUtils/backend/dist/controllers/MasterPlanController.js:69:22)
[2024-05-20T09:42:08.711Z] ERROR: Error: Not found
at Object.findById (/home/kaller/servers/LiUtils/backend/dist/repos/UserRepo.js:47:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MasterPlanController.getMyChoosenMasterPlan (/home/kaller/servers/LiUtils/backend/dist/controllers/MasterPlanController.js:69:22)
[2024-05-20T09:42:26.934Z] ERROR: error: insert or update on table "MasterPlan" violates foreign key constraint "MasterPlan_userId_fkey"
[2024-05-20T09:42:26.934Z] ERROR: Error: Failed to create user
at Object.create (/home/kaller/servers/LiUtils/backend/dist/repos/MasterPlanRepo.js:111:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MasterPlanController.createMasterPlan (/home/kaller/servers/LiUtils/backend/dist/controllers/MasterPlanController.js:44:22)
[2024-05-20T09:42:35.848Z] ERROR: error: insert or update on table "MasterPlan" violates foreign key constraint "MasterPlan_userId_fkey"
[2024-05-20T09:42:35.848Z] ERROR: Error: Failed to create user
at Object.create (/home/kaller/servers/LiUtils/backend/dist/repos/MasterPlanRepo.js:111:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MasterPlanController.createMasterPlan (/home/kaller/servers/LiUtils/backend/dist/controllers/MasterPlanController.js:44:22)