Skip to content

Conversation

@shristi-sinha
Copy link
Contributor

…t api

const project = await projectService.revertProject(req);
res.status(200).json(project);
};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add validation

};

const revertProject = async (req: Request) => {
const { orgId, projectId } = req.params;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add validation

throw new NotFoundError(HTTP_TEXTS.PROJECT_NOT_FOUND);
} else{
ProjectModelLowdb.update((data: any) => {
data.projects[projectIndex].isDeleted = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add validation

@sayalijoshi27 sayalijoshi27 merged commit 1a0cbe9 into dev May 28, 2024
@umeshmore45 umeshmore45 deleted the feature/project-restore branch June 2, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants