fix(client): shit apiVersion everywhere
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit was merged in pull request #10.
This commit is contained in:
2026-02-05 19:19:48 +08:00
committed by Asai Neko
parent 2c22c0ec5c
commit 7afc6ec25e
7 changed files with 17 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import type { ServiceUserUserInfoData } from '@/client';
import { useUpdateUser } from '@/hooks/data/useUpdateUser';
import { ver } from '@/lib/apiVersion';
import { EditProfileDialogView } from './edit-profile.dialog.view';
export function EditProfileDialogContainer({ data }: { data: ServiceUserUserInfoData }) {
@@ -8,7 +9,7 @@ export function EditProfileDialogContainer({ data }: { data: ServiceUserUserInfo
<EditProfileDialogView
user={data}
updateProfile={async (data) => {
await mutateAsync({ body: data });
await mutateAsync({ body: data, headers: ver('20260205') });
}}
/>
);

View File

@@ -1,5 +1,6 @@
import { useUpdateUser } from '@/hooks/data/useUpdateUser';
import { useOtherUserInfo } from '@/hooks/data/useUserInfo';
import { ver } from '@/lib/apiVersion';
import { utf8ToBase64 } from '@/lib/utils';
import { ProfileView } from './profile.view';
@@ -10,7 +11,7 @@ export function ProfileContainer({ userId }: { userId: string }) {
<ProfileView
user={data.data!}
onSaveBio={async (bio) => {
await mutateAsync({ body: { bio: utf8ToBase64(bio) } });
await mutateAsync({ body: { bio: utf8ToBase64(bio) }, headers: ver('20260205') });
}}
/>
);