feat: fetch password when fetching secrets

This commit is contained in:
lemmyMwaura
2024-08-06 12:58:53 +03:00
parent ce4ba24ef2
commit 63333159ca

View File

@@ -63,6 +63,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
response: {
200: SecretSharingSchema.pick({
encryptedValue: true,
password: true,
iv: true,
tag: true,
expiresAt: true,
@@ -84,6 +85,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
encryptedValue: sharedSecret.encryptedValue,
iv: sharedSecret.iv,
tag: sharedSecret.tag,
password: sharedSecret.password,
expiresAt: sharedSecret.expiresAt,
expiresAfterViews: sharedSecret.expiresAfterViews,
accessType: sharedSecret.accessType,