merged with main branch to clear the testing commits

This commit is contained in:
2025-06-02 11:22:06 +05:30
107 changed files with 1344 additions and 2364 deletions

View File

@@ -67,7 +67,6 @@ export const GetProjects = async (
): Promise<void> => {
try {
const { userId, organization, role } = req.user || {};
// const { userId, organization } = req.params;
if (!userId || !organization || !role) {
res.status(400).json({
message: "All fields are required",
@@ -106,7 +105,6 @@ export const RemoveProject = async (
): Promise<void> => {
try {
const { projectId } = req.params;
// const { organization, userId } = req.body;
const { organization, userId } = req.user || {};
if (!req.user || !req.user.userId || !req.user.organization) {
res.status(401).json({ message: "Unauthorized" });

View File

@@ -8,12 +8,7 @@ export const versioncontroller = async (
try {
console.log("req.body: ", req.body);
const { projectId, userId, description, db } = req.body;
// if (!userName || !Email || !description) {
// res.status(400).json({
// message: "All fields are required",
// });
// return;
// }
const result = await versionService.saveCurrentStateAsVersion(
db,
projectId,