mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-25 14:05:03 +00:00
Add required backup key return fields for GET backup key
This commit is contained in:
@ -309,7 +309,7 @@ export const getBackupPrivateKey = async (req: Request, res: Response) => {
|
||||
try {
|
||||
backupPrivateKey = await BackupPrivateKey.findOne({
|
||||
user: req.user._id
|
||||
});
|
||||
}).select('+encryptedPrivateKey +iv +tag');
|
||||
|
||||
if (!backupPrivateKey) throw new Error('Failed to find backup private key');
|
||||
} catch (err) {
|
||||
|
Reference in New Issue
Block a user