diff --git a/server/express/profile.ts b/server/express/profile.ts index d75a9a140..0fe84de4c 100644 --- a/server/express/profile.ts +++ b/server/express/profile.ts @@ -632,9 +632,9 @@ const cleanupOpinions = (opinions: OpinionFormValue[]) => { }; type SaveProfile = Omit -& Partial> -& Pick; + 'card' | 'cardDark' | 'circle' | 'markdown' | 'events' | 'customEvents' | 'lastUpdate' | 'id' | 'access'> + & Partial> + & Pick; const saveProfile = async (req: Request, locale: string, { opinions, names, pronouns, description, birthday, timezone, links, flags, customFlags, words, sensitive, @@ -1036,8 +1036,8 @@ interface ProfileExportData { } type ProfileExportProfile = Omit -& Pick; + 'card' | 'cardDark' | 'circle' | 'lastUpdate' | 'id' | 'access'> + & Pick; router.get('/profile/export', handleErrorAsync(async (req: Request, res: Response) => { if (!req.user || req.user.bannedReason) {