Skip to content

Commit

Permalink
ts fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
burtonjong committed Jul 7, 2024
1 parent c6e5fa4 commit 45cc182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/admin/AdminForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function AdminForm() {
//a Tanstack mutation to add Sessions to Users
const mutation = useMutation({
mutationFn: async (data: SessionFormData) => {
await client.models.SessionsAttended.create({
await client.models.SessionAttended.create({
...data,
sessionAttendedId: selectedUser!.id,
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/homepage/Podium.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Podium() {
const usersResponse = await client.models.User.list();
const usersWithSessions = await Promise.all(
usersResponse.data.map(async (user) => {
const sessionsResponse = await client.models.SessionsAttended.list({
const sessionsResponse = await client.models.SessionAttended.list({
filter: { sessionAttendedId: { eq: user.id } },
});
return {
Expand Down

0 comments on commit 45cc182

Please sign in to comment.