@@ -4,8 +4,6 @@ import type {
44import { Identifiers } from "@mainsail/constants" ;
55import type { Contracts } from "@mainsail/contracts" ;
66import type { assert } from "@mainsail/test-runner" ;
7- import { writeFileSync } from "fs" ;
8-
97
108import { runDatabaseQuery , setupLegacyRestoreNode , setupRestoreNode , shutdown } from "./setup.js" ;
119
@@ -91,19 +89,13 @@ const computeNodeTableHashes = async (node: Contracts.Kernel.Application): Promi
9189 return tableHashes ;
9290}
9391
94- const orderWalletsTable = async ( node : Contracts . Kernel . Application , name : string ) : Promise < void > => {
95- await runDatabaseQuery ( node . get < string > ( Identifiers . Application . Name ) , async ( dataSource : TypeOrm . DataSource ) => {
96- return dataSource . query < TableHashes > ( `SELECT * FROM public.wallets ORDER BY address;` ) ;
97- } ) ;
98- }
99-
100- const logWalletsTable = async ( node : Contracts . Kernel . Application , name : string ) : Promise < void > => {
101- const wallets = await runDatabaseQuery ( node . get < string > ( Identifiers . Application . Name ) , async ( dataSource : TypeOrm . DataSource ) => {
102- return dataSource . query < TableHashes > ( `SELECT * FROM public.wallets ORDER BY address;` ) ;
103- } ) ;
92+ // const logWalletsTable = async (node: Contracts.Kernel.Application, name: string): Promise<void> => {
93+ // const wallets = await runDatabaseQuery(node.get<string>(Identifiers.Application.Name), async (dataSource: TypeOrm.DataSource) => {
94+ // return dataSource.query<TableHashes>(`SELECT * FROM public.wallets ORDER BY address;`);
95+ // });
10496
105- writeFileSync ( `wallets_${ name } .json` , JSON . stringify ( wallets , null , 2 ) ) ;
106- }
97+ // writeFileSync(`wallets_${name}.json`, JSON.stringify(wallets, null, 2));
98+ // }
10799
108100const verifyIntegrity = async ( t : typeof assert , syncNode : Contracts . Kernel . Application , restoreNode : Contracts . Kernel . Application ) : Promise < void > => {
109101 await patchDatabase ( syncNode , restoreNode ) ;
0 commit comments