From 6dd743bbf4f383249e97549ed0ed0417b6f5609d Mon Sep 17 00:00:00 2001 From: web-ppanel Date: Tue, 27 Jan 2026 18:11:32 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20fix(ci):=20avoid=20void|Promise?= =?UTF-8?q?=20union=20for=20refetch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/sections/user/index.tsx | 1 + apps/admin/src/sections/user/user-profile/auth-methods-form.tsx | 2 +- apps/admin/src/sections/user/user-profile/basic-info-form.tsx | 2 +- .../src/sections/user/user-profile/notify-settings-form.tsx | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/admin/src/sections/user/index.tsx b/apps/admin/src/sections/user/index.tsx index b44d2e1..13b43aa 100644 --- a/apps/admin/src/sections/user/index.tsx +++ b/apps/admin/src/sections/user/index.tsx @@ -316,6 +316,7 @@ function ProfileSheet({ const refetchAll = async () => { await refetch(); onUpdated?.(); + return Promise.resolve(); }; return ( diff --git a/apps/admin/src/sections/user/user-profile/auth-methods-form.tsx b/apps/admin/src/sections/user/user-profile/auth-methods-form.tsx index 60738ac..9cdcfe0 100644 --- a/apps/admin/src/sections/user/user-profile/auth-methods-form.tsx +++ b/apps/admin/src/sections/user/user-profile/auth-methods-form.tsx @@ -21,7 +21,7 @@ export function AuthMethodsForm({ refetch, }: { user: API.User; - refetch: () => void | Promise; + refetch: () => Promise; }) { const { t } = useTranslation("user"); diff --git a/apps/admin/src/sections/user/user-profile/basic-info-form.tsx b/apps/admin/src/sections/user/user-profile/basic-info-form.tsx index fab8c38..68a55b7 100644 --- a/apps/admin/src/sections/user/user-profile/basic-info-form.tsx +++ b/apps/admin/src/sections/user/user-profile/basic-info-form.tsx @@ -47,7 +47,7 @@ export function BasicInfoForm({ refetch, }: { user: API.User; - refetch: () => void | Promise; + refetch: () => Promise; }) { const { t } = useTranslation("user"); diff --git a/apps/admin/src/sections/user/user-profile/notify-settings-form.tsx b/apps/admin/src/sections/user/user-profile/notify-settings-form.tsx index 1c7956c..e72d271 100644 --- a/apps/admin/src/sections/user/user-profile/notify-settings-form.tsx +++ b/apps/admin/src/sections/user/user-profile/notify-settings-form.tsx @@ -34,7 +34,7 @@ export function NotifySettingsForm({ refetch, }: { user: API.User; - refetch: () => void | Promise; + refetch: () => Promise; }) { const { t } = useTranslation("user");