patch check for version

This commit is contained in:
Maidul Islam
2024-02-07 12:44:03 -05:00
parent 3ecfb3f9d2
commit ecafdb0d01

View File

@ -549,7 +549,7 @@ export const secretServiceFactory = ({
secretType = SecretType.Shared;
}
const secret = await (typeof version === undefined
const secret = await (version === undefined
? secretDAL.findOne({
folderId,
type: secretType,