The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: sort backups by inserted_at instead
dragarciadbeed694f7c9
diff --git a/studio/stores/project/ProjectBackupsStore.ts b/studio/stores/project/ProjectBackupsStore.tsindex 45f6802ac2a..db9c184601b 100644--- a/studio/stores/project/ProjectBackupsStore.ts+++ b/studio/stores/project/ProjectBackupsStore.ts@@ -92,9 +92,15 @@ export default class ProjectBackupsStore implements IProjectBackupsStore {list(filter?: any) {const arr = Object.values(this.data)if (!!filter) {- return arr.filter(filter).sort((a: any, b: any) => b.id - a.id)+ return arr+ .filter(filter)+ .sort(+ (a: any, b: any) => new Date(b.inserted_at).valueOf() - new Date(a.inserted_at).valueOf()+ )} else {- return arr.sort((a: any, b: any) => b.id - a.id)+ return arr.sort(+ (a: any, b: any) => new Date(b.inserted_at).valueOf() - new Date(a.inserted_at).valueOf()+ )}}