mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 02:01:33 +10:00
feat: initiated public profile
Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
This commit is contained in:
@ -88,7 +88,7 @@ export const profileRouter = router({
|
||||
.input(ZUpdatePublicProfileMutationSchema)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
try {
|
||||
const { url } = input;
|
||||
const { url, bio } = input;
|
||||
|
||||
if (IS_BILLING_ENABLED() && url.length <= 6) {
|
||||
const subscriptions = await getSubscriptionsByUserId({
|
||||
@ -108,6 +108,7 @@ export const profileRouter = router({
|
||||
const user = await updatePublicProfile({
|
||||
userId: ctx.user.id,
|
||||
url,
|
||||
bio,
|
||||
});
|
||||
|
||||
return { success: true, url: user.url };
|
||||
|
||||
Reference in New Issue
Block a user