revert weird lint behaviour

This commit is contained in:
Andrea Vos 2025-02-23 14:57:36 +01:00
parent e6787f8d60
commit 27820c822b

View File

@ -632,9 +632,9 @@ const cleanupOpinions = (opinions: OpinionFormValue[]) => {
};
type SaveProfile = Omit<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials' |
'card' | 'cardDark' | 'circle' | 'markdown' | 'events' | 'customEvents' | 'lastUpdate' | 'id' | 'access'>
& Partial<Pick<Profile, 'markdown' | 'events' | 'customEvents'>>
& Pick<ProfileRow, 'footerAreas' | 'credentials'>;
'card' | 'cardDark' | 'circle' | 'markdown' | 'events' | 'customEvents' | 'lastUpdate' | 'id' | 'access'>
& Partial<Pick<Profile, 'markdown' | 'events' | 'customEvents'>>
& Pick<ProfileRow, 'footerAreas' | 'credentials'>;
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<Profile, 'linksMetadata' | 'verifiedLinks' | 'footerAreas' | 'credentials' |
'card' | 'cardDark' | 'circle' | 'lastUpdate' | 'id' | 'access'>
& Pick<ProfileRow, 'footerAreas' | 'credentials'>;
'card' | 'cardDark' | 'circle' | 'lastUpdate' | 'id' | 'access'>
& Pick<ProfileRow, 'footerAreas' | 'credentials'>;
router.get('/profile/export', handleErrorAsync(async (req: Request, res: Response) => {
if (!req.user || req.user.bannedReason) {