mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 16:51:38 +10:00
feat: add envelopes api (#2105)
This commit is contained in:
@ -23,7 +23,7 @@ export const setEnvelopeRecipientsRoute = authenticatedProcedure
|
||||
},
|
||||
});
|
||||
|
||||
return await match(envelopeType)
|
||||
const { recipients: data } = await match(envelopeType)
|
||||
.with(EnvelopeType.DOCUMENT, async () =>
|
||||
setDocumentRecipients({
|
||||
userId: ctx.user.id,
|
||||
@ -48,4 +48,8 @@ export const setEnvelopeRecipientsRoute = authenticatedProcedure
|
||||
}),
|
||||
)
|
||||
.exhaustive();
|
||||
|
||||
return {
|
||||
data,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user