Merge pull request #697 from Infisical/revamp-project-settings

Standardize styling of Project Settings Page
This commit is contained in:
BlackMagiq
2023-06-30 16:44:02 +07:00
committed by GitHub
28 changed files with 1497 additions and 1254 deletions
+6 -2
View File
@@ -16,7 +16,7 @@ export const createWorkspaceTag = async (req: Request, res: Response) => {
user: new Types.ObjectId(req.user._id),
};
const createdTag = await new Tag(tagToCreate);
const createdTag = await new Tag(tagToCreate).save();
res.json(createdTag);
};
@@ -49,7 +49,11 @@ export const deleteWorkspaceTag = async (req: Request, res: Response) => {
export const getWorkspaceTags = async (req: Request, res: Response) => {
const { workspaceId } = req.params;
const workspaceTags = await Tag.find({ workspace: workspaceId });
const workspaceTags = await Tag.find({
workspace: new Types.ObjectId(workspaceId)
});
return res.json({
workspaceTags
});