Skip to content

Commit

Permalink
Merge pull request #1889 from automatisch/fix-attribute-typo
Browse files Browse the repository at this point in the history
  • Loading branch information
barinali committed May 17, 2024
2 parents 991b2f4 + fc7f1dd commit 9900bbb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export default {
queries: [
JSON.stringify({
method: 'orderAsc',
atttribute: 'name'
attribute: 'name',
}),
JSON.stringify({
method: 'limit',
values: [100]
values: [100],
}),
],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export default {
queries: [
JSON.stringify({
method: 'orderAsc',
atttribute: 'name'
attribute: 'name',
}),
JSON.stringify({
method: 'limit',
values: [100]
values: [100],
}),
],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,24 @@ export default defineTrigger({
queries: [
JSON.stringify({
method: 'orderDesc',
atttribute: '$createdAt'
attribute: '$createdAt',
}),
JSON.stringify({
method: 'limit',
values: [limit]
values: [limit],
}),
// An invalid cursor shouldn't be sent.
lastDocumentId && JSON.stringify({
method: 'cursorAfter',
values: [lastDocumentId]
})
lastDocumentId &&
JSON.stringify({
method: 'cursorAfter',
values: [lastDocumentId],
}),
].filter(Boolean),
};

const { data } = await $.http.get(
`/v1/databases/${databaseId}/collections/${collectionId}/documents`,
{ params },
{ params }
);

const documents = data?.documents;
Expand Down

0 comments on commit 9900bbb

Please sign in to comment.