Skip to content

Commit

Permalink
fixed API queries
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessh committed Dec 4, 2024
1 parent 5421706 commit d6e276f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 32 deletions.
8 changes: 1 addition & 7 deletions frontend/src/APIClients/Mutations/ResidentsMutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ export const ADD_RESIDENT = gql`
addResident(resident: $resident) {
userId
residentId
displayName
profilePictureURL
roomNumber
credits
dateJoined
Expand All @@ -20,8 +18,6 @@ export const UPDATE_RESIDENT = gql`
updateResident(userId: $userId, resident: $resident) {
userId
residentId
displayName
profilePictureURL
roomNumber
credits
dateJoined
Expand All @@ -35,12 +31,10 @@ export const DELETE_RESIDENT = gql`
deleteResident(userId: $userId) {
userId
residentId
displayName
profilePictureURL
roomNumber
credits
dateJoined
dateLeft
}
}
`;
`;
6 changes: 0 additions & 6 deletions frontend/src/APIClients/Mutations/StaffMutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export const ADD_STAFF = gql`
phoneNumber
firstName
lastName
displayName
profilePictureURL
isAdmin
}
}
Expand All @@ -23,8 +21,6 @@ export const UPDATE_STAFF = gql`
phoneNumber
firstName
lastName
displayName
profilePictureURL
isAdmin
}
}
Expand All @@ -38,8 +34,6 @@ export const DELETE_STAFF = gql`
phoneNumber
firstName
lastName
displayName
profilePictureURL
isAdmin
}
}
Expand Down
15 changes: 0 additions & 15 deletions frontend/src/APIClients/Queries/ResidentsQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ export const GET_RESIDENTS_BY_ID = gql`
getResidentsByIds(userIds: $userIds) {
userId
residentId
email
phoneNumber
firstName
lastName
birthDate
roomNumber
credits
dateJoined
Expand All @@ -23,11 +18,6 @@ export const GET_ALL_RESIDENTS = gql`
getAllResidents {
userId
residentId
email
phoneNumber
firstName
lastName
birthDate
roomNumber
credits
dateJoined
Expand All @@ -41,11 +31,6 @@ export const GET_ACTIVE_RESIDENTS = gql`
getActiveResidents {
userId
residentId
email
phoneNumber
firstName
lastName
birthDate
roomNumber
credits
dateJoined
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/APIClients/Queries/StaffQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export const GET_ALL_STAFF = gql`
phoneNumber
firstName
lastName
displayName
profilePictureURL
isAdmin
}
}
Expand All @@ -23,8 +21,6 @@ export const GET_STAFF_BY_IDS = gql`
phoneNumber
firstName
lastName
displayName
profilePictureURL
isAdmin
}
}
Expand Down

0 comments on commit d6e276f

Please sign in to comment.