Skip to content

Commit bdceb72

Browse files
authored
Merge pull request #976 from mapswipe/fix/usergroup-user-typing-issue
Update UserGroupUserStatsType & UserGroupUserMembershipType username type
2 parents 4235d33 + 700ef17 commit bdceb72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

django/apps/existing_database/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class UserGroupLatestStatsType:
7171
@strawberry.type
7272
class UserGroupUserStatsType:
7373
user_id: str
74-
username: str
74+
username: str | None
7575
total_mapping_projects: int
7676
total_swipes: int
7777
total_swipe_time: TimeInSeconds
@@ -545,7 +545,7 @@ async def id(self, info: Info, root: UserGroup) -> strawberry.ID:
545545
class UserGroupUserMembershipType:
546546
id: strawberry.ID
547547
user_id: str
548-
username: str
548+
username: str | None
549549
is_active: bool
550550
# Stats
551551
total_mapping_projects: int

django/schema.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ type UserGroupTypeCountList {
225225
type UserGroupUserMembershipType {
226226
id: ID!
227227
userId: String!
228-
username: String!
228+
username: String
229229
isActive: Boolean!
230230
totalMappingProjects: Int!
231231
totalSwipes: Int!
@@ -241,7 +241,7 @@ type UserGroupUserMembershipTypeCountList {
241241

242242
type UserGroupUserStatsType {
243243
userId: String!
244-
username: String!
244+
username: String
245245
totalMappingProjects: Int!
246246
totalSwipes: Int!
247247
totalSwipeTime: TimeInSeconds!

0 commit comments

Comments
 (0)