fix(appwrite): fix attribute typo
This commit is contained in:
@@ -16,11 +16,11 @@ export default {
|
||||
queries: [
|
||||
JSON.stringify({
|
||||
method: 'orderAsc',
|
||||
atttribute: 'name'
|
||||
attribute: 'name',
|
||||
}),
|
||||
JSON.stringify({
|
||||
method: 'limit',
|
||||
values: [100]
|
||||
values: [100],
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
@@ -11,11 +11,11 @@ export default {
|
||||
queries: [
|
||||
JSON.stringify({
|
||||
method: 'orderAsc',
|
||||
atttribute: 'name'
|
||||
attribute: 'name',
|
||||
}),
|
||||
JSON.stringify({
|
||||
method: 'limit',
|
||||
values: [100]
|
||||
values: [100],
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
@@ -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({
|
||||
lastDocumentId &&
|
||||
JSON.stringify({
|
||||
method: 'cursorAfter',
|
||||
values: [lastDocumentId]
|
||||
})
|
||||
values: [lastDocumentId],
|
||||
}),
|
||||
].filter(Boolean),
|
||||
};
|
||||
|
||||
const { data } = await $.http.get(
|
||||
`/v1/databases/${databaseId}/collections/${collectionId}/documents`,
|
||||
{ params },
|
||||
{ params }
|
||||
);
|
||||
|
||||
const documents = data?.documents;
|
||||
|
Reference in New Issue
Block a user