fix(server): failed to resolve user importing result (#10804)
This commit is contained in:
@@ -191,6 +191,9 @@ class UserImportFailedType {
|
|||||||
const UserImportResultType = createUnionType({
|
const UserImportResultType = createUnionType({
|
||||||
name: 'UserImportResultType',
|
name: 'UserImportResultType',
|
||||||
types: () => [UserType, UserImportFailedType],
|
types: () => [UserType, UserImportFailedType],
|
||||||
|
resolveType: val => {
|
||||||
|
return 'error' in val ? UserImportFailedType : UserType;
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@Admin()
|
@Admin()
|
||||||
|
|||||||
Reference in New Issue
Block a user