mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: filter backup/restorations from migrations screens.
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
import { Dependencies } from '$lib/constants.js';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { Query } from '@appwrite.io/console';
|
||||
|
||||
export async function load({ depends }) {
|
||||
depends(Dependencies.MIGRATIONS);
|
||||
|
||||
try {
|
||||
const { migrations } = await sdk.forProject.migrations.list();
|
||||
const { migrations } = await sdk.forProject.migrations.list([
|
||||
// hides backups/restorations from migrations page.
|
||||
Query.equal('source', ['Firebase', 'NHost', 'Supabase'])
|
||||
]);
|
||||
|
||||
return {
|
||||
migrations
|
||||
|
||||
Reference in New Issue
Block a user