Skip to content

Commit

Permalink
Merge pull request #458 from appwrite/fix-remove-default-order
Browse files Browse the repository at this point in the history
fix: remove default order
  • Loading branch information
TorstenDittmann committed Jun 2, 2023
2 parents 3a0c8f0 + 9b0dd78 commit b981302
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 67 deletions.
3 changes: 1 addition & 2 deletions src/routes/console/account/organizations/[[page]]/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export const load: PageLoad = async ({ params }) => {
offset,
organizations: await sdkForConsole.teams.list([
Query.offset(offset),
Query.limit(CARD_LIMIT),
Query.orderDesc('$createdAt')
Query.limit(CARD_LIMIT)
])
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const load: PageLoad = async ({ params }) => {
projects: await sdkForConsole.projects.list([
Query.offset(offset),
Query.limit(CARD_LIMIT),
Query.equal('teamId', params.organization),
Query.orderDesc('$createdAt')
Query.equal('teamId', params.organization)
])
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const load: PageLoad = async ({ params, parent, url }) => {
search,
page,
users: await sdkForProject.users.list(
[Query.limit(PAGE_LIMIT), Query.offset(offset), Query.orderDesc('$createdAt')],
[Query.limit(PAGE_LIMIT), Query.offset(offset)],
search
)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const load: PageLoad = async ({ params, parent, url }) => {
search,
page,
teams: await sdkForProject.teams.list(
[Query.limit(PAGE_LIMIT), Query.offset(offset), Query.orderDesc('$createdAt')],
[Query.limit(PAGE_LIMIT), Query.offset(offset)],
search
)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const load: PageLoad = async ({ params, parent, depends, url }) => {
search,
memberships: await sdkForProject.teams.listMemberships(
teamId,
[Query.limit(PAGE_LIMIT), Query.offset(offset), Query.orderDesc('$createdAt')],
[Query.limit(PAGE_LIMIT), Query.offset(offset)],
search
)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const load: PageLoad = async ({ params, parent }) => {
offset,
databases: await sdkForProject.databases.list([
Query.limit(CARD_LIMIT),
Query.offset(offset),
Query.orderDesc('$createdAt')
Query.offset(offset)
])
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const load: PageLoad = async ({ params, parent }) => {
offset,
collections: await sdkForProject.databases.listCollections(params.database, [
Query.limit(CARD_LIMIT),
Query.offset(offset),
Query.orderDesc('$createdAt')
Query.offset(offset)
])
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export const load: PageLoad = async ({ params, parent, depends }) => {
offset,
documents: await sdkForProject.databases.listDocuments(params.database, params.collection, [
Query.limit(PAGE_LIMIT),
Query.offset(offset),
Query.orderDesc('$createdAt')
Query.offset(offset)
])
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export const load: PageLoad = async ({ params, parent, depends }) => {
offset,
functions: await sdkForProject.functions.list([
Query.limit(CARD_LIMIT),
Query.offset(offset),
Query.orderDesc('$createdAt')
Query.offset(offset)
])
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export const load: PageLoad = async ({ params, parent, depends }) => {
offset,
deployments: await sdkForProject.functions.listDeployments(params.function, [
Query.limit(PAGE_LIMIT),
Query.offset(offset),
Query.orderDesc('$createdAt')
Query.offset(offset)
])
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export const load: PageLoad = async ({ params, parent, depends }) => {
offset,
executions: await sdkForProject.functions.listExecutions(params.function, [
Query.limit(PAGE_LIMIT),
Query.offset(offset),
Query.orderDesc('$createdAt')
Query.offset(offset)
])
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const load: PageLoad = async ({ params, parent }) => {
offset,
buckets: await sdkForProject.storage.listBuckets([
Query.limit(CARD_LIMIT),
Query.offset(offset),
Query.orderDesc('$createdAt')
Query.offset(offset)
])
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const load: PageLoad = async ({ params, parent, depends, url }) => {
search,
files: await sdkForProject.storage.listFiles(
params.bucket,
[Query.limit(PAGE_LIMIT), Query.offset(offset), Query.orderDesc('$createdAt')],
[Query.limit(PAGE_LIMIT), Query.offset(offset)],
search
)
};
Expand Down
45 changes: 0 additions & 45 deletions vite.config.ts.timestamp-1682949685828.mjs

This file was deleted.

0 comments on commit b981302

Please sign in to comment.