Add back service token data select fields for GET endpoint

This commit is contained in:
Tuan Dang
2023-04-22 11:47:23 +03:00
parent 7fc01df93e
commit e0d5644b3a
4 changed files with 3 additions and 3 deletions
@@ -40,7 +40,7 @@ export const getSecretByName = async (req: Request, res: Response) => {
const workspaceId = req.query.workspaceId as string;
const environment = req.query.environment as string;
const type = req.query.type as 'shared' | 'personal' | undefined;
const secret = await SecretService.getSecret({
secretName,
workspaceId: new Types.ObjectId(workspaceId),