princecodes247 / Veldora--api

Found the usage of undeclared variables JS-0125
Bug risk
2 months ago5 months old
'ProjectService' is not defined
 6  async create(req, res, next) {
 7    try {
 8      const { projectId } = req.params;
 9      const { owner } = await ProjectService.getOne(projectId);10      const submission = await SubmissionService.create({ ...req.body, project: projectId });
11      await UserService.updateQuota(owner, -1);
12      return res.json(submission).status(200);