mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 18:27:19 +00:00
Merge branch 'main' of https://github.com/Infisical/infisical into bot
This commit is contained in:
@@ -309,7 +309,7 @@ export const getBackupPrivateKey = async (req: Request, res: Response) => {
|
|||||||
try {
|
try {
|
||||||
backupPrivateKey = await BackupPrivateKey.findOne({
|
backupPrivateKey = await BackupPrivateKey.findOne({
|
||||||
user: req.user._id
|
user: req.user._id
|
||||||
});
|
}).select('+encryptedPrivateKey +iv +tag');
|
||||||
|
|
||||||
if (!backupPrivateKey) throw new Error('Failed to find backup private key');
|
if (!backupPrivateKey) throw new Error('Failed to find backup private key');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user