mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
revert weird lint behaviour
This commit is contained in:
parent
e6787f8d60
commit
27820c822b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user