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
+1 -1
View File
@@ -620,7 +620,6 @@ const getSecretHelper = async ({
secretName,
workspaceId: new Types.ObjectId(workspaceId)
});
let secret: ISecret | null = null;
// try getting personal secret first (if exists)
@@ -733,6 +732,7 @@ const updateSecretHelper = async ({
);
} else {
// case: update personal secret
secret = await Secret.findOneAndUpdate(
{
secretBlindIndex,