Skip to content

Commit

Permalink
Merge pull request #259 from cabcookie:consider-activities-with-peopl…
Browse files Browse the repository at this point in the history
…e-mentioned

fix: listing meeting participant's notes; upgrading deps
  • Loading branch information
cabcookie authored Nov 28, 2024
2 parents 76ee75c + 6a91725 commit c2a7b0f
Show file tree
Hide file tree
Showing 3 changed files with 3,140 additions and 3,445 deletions.
4 changes: 1 addition & 3 deletions amplify/data/person-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ const personSchmema = {
person: a.belongsTo("Person", "personId"),
createdAt: a.datetime().required(),
})
.secondaryIndexes((index) => [
index("personId").sortKeys(["createdAt"]).queryField("listByPersonId"),
])
.secondaryIndexes((index) => [index("personId").sortKeys(["createdAt"])])
.authorization((allow) => [allow.owner()]),
PersonAccount: a
.model({
Expand Down
2 changes: 1 addition & 1 deletion api/usePersonActivities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const fetchPersonActivities = (personId?: string) => async () => {
const mentionedPersonActivities =
await fetchMentionedPersonActivities(personId);
const { data, errors } =
await client.models.MeetingParticipant.listByPersonId(
await client.models.MeetingParticipant.listMeetingParticipantByPersonIdAndCreatedAt(
{
personId,
},
Expand Down
Loading

0 comments on commit c2a7b0f

Please sign in to comment.