mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 11:29:42 +00:00
feat: hide expiry condition to end user & fix decrement condition in knex
This commit is contained in:
@@ -62,9 +62,7 @@ export const secretSharingServiceFactory = ({
|
||||
await secretSharingDAL.deleteById(sharedSecretId);
|
||||
return;
|
||||
}
|
||||
await secretSharingDAL.updateById(sharedSecretId, {
|
||||
expiresAfterViews: sharedSecret.expiresAfterViews - 1
|
||||
});
|
||||
await secretSharingDAL.updateById(sharedSecretId, { $decr: { expiresAfterViews: 1 } });
|
||||
}
|
||||
return sharedSecret;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user