chore: merge feat/refresh

This commit is contained in:
pit
2023-10-10 13:53:22 +03:00
266 changed files with 6961 additions and 1475 deletions

View File

@@ -67,11 +67,12 @@ export const profileRouter = router({
.input(ZUpdatePasswordMutationSchema)
.mutation(async ({ input, ctx }) => {
try {
const { password } = input;
const { password, currentPassword } = input;
return await updatePassword({
userId: ctx.user.id,
password,
currentPassword,
});
} catch (err) {
let message =