Skip to content

Commit

Permalink
Merge pull request #976 from mapswipe/fix/usergroup-user-typing-issue
Browse files Browse the repository at this point in the history
Update UserGroupUserStatsType & UserGroupUserMembershipType username type
  • Loading branch information
thenav56 authored Oct 29, 2024
2 parents 4235d33 + 700ef17 commit bdceb72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions django/apps/existing_database/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class UserGroupLatestStatsType:
@strawberry.type
class UserGroupUserStatsType:
user_id: str
username: str
username: str | None
total_mapping_projects: int
total_swipes: int
total_swipe_time: TimeInSeconds
Expand Down Expand Up @@ -545,7 +545,7 @@ async def id(self, info: Info, root: UserGroup) -> strawberry.ID:
class UserGroupUserMembershipType:
id: strawberry.ID
user_id: str
username: str
username: str | None
is_active: bool
# Stats
total_mapping_projects: int
Expand Down
4 changes: 2 additions & 2 deletions django/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ type UserGroupTypeCountList {
type UserGroupUserMembershipType {
id: ID!
userId: String!
username: String!
username: String
isActive: Boolean!
totalMappingProjects: Int!
totalSwipes: Int!
Expand All @@ -241,7 +241,7 @@ type UserGroupUserMembershipTypeCountList {

type UserGroupUserStatsType {
userId: String!
username: String!
username: String
totalMappingProjects: Int!
totalSwipes: Int!
totalSwipeTime: TimeInSeconds!
Expand Down

0 comments on commit bdceb72

Please sign in to comment.