feat: fetch password when fetching secrets

This commit is contained in:
lemmyMwaura
2024-08-06 12:58:53 +03:00
parent ce4ba24ef2
commit 63333159ca
@@ -63,6 +63,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
response: { response: {
200: SecretSharingSchema.pick({ 200: SecretSharingSchema.pick({
encryptedValue: true, encryptedValue: true,
password: true,
iv: true, iv: true,
tag: true, tag: true,
expiresAt: true, expiresAt: true,
@@ -84,6 +85,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
encryptedValue: sharedSecret.encryptedValue, encryptedValue: sharedSecret.encryptedValue,
iv: sharedSecret.iv, iv: sharedSecret.iv,
tag: sharedSecret.tag, tag: sharedSecret.tag,
password: sharedSecret.password,
expiresAt: sharedSecret.expiresAt, expiresAt: sharedSecret.expiresAt,
expiresAfterViews: sharedSecret.expiresAfterViews, expiresAfterViews: sharedSecret.expiresAfterViews,
accessType: sharedSecret.accessType, accessType: sharedSecret.accessType,