mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix performer scraping (#1314)
This commit is contained in:
@@ -933,7 +933,7 @@ export const stringGenderMap = new Map<string, GQL.GenderEnum>([
|
||||
["Non-Binary", GQL.GenderEnum.NonBinary],
|
||||
]);
|
||||
|
||||
export const genderToString = (value?: GQL.GenderEnum) => {
|
||||
export const genderToString = (value?: GQL.GenderEnum | string) => {
|
||||
if (!value) {
|
||||
return undefined;
|
||||
}
|
||||
@@ -947,7 +947,10 @@ export const genderToString = (value?: GQL.GenderEnum) => {
|
||||
}
|
||||
};
|
||||
|
||||
export const stringToGender = (value?: string, caseInsensitive?: boolean) => {
|
||||
export const stringToGender = (
|
||||
value?: string | null,
|
||||
caseInsensitive?: boolean
|
||||
) => {
|
||||
if (!value) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user