Skip to content
Snippets Groups Projects
Commit f5bf3c1d authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[refact] ignore migration errors temporarily

parent 32d74685
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ export class DataFinder { ...@@ -43,7 +43,7 @@ export class DataFinder {
@MonitorExecutionTime() @MonitorExecutionTime()
async getWotbIdByIssuerPubkey(issuerPubkey: string) { async getWotbIdByIssuerPubkey(issuerPubkey: string) {
return this.getFromCacheOrDB('getWotbIdByIssuerPubkey', issuerPubkey, async () => (await this.duniterServer.dal.iindexDAL.query('SELECT wotb_id FROM i_index WHERE pub = ? AND wotb_id IS NOT NULL', [issuerPubkey]))[0].wotb_id) return this.getFromCacheOrDB('getWotbIdByIssuerPubkey', issuerPubkey, async () => (await this.query('SELECT wotb_id FROM i_index WHERE pub = ? AND wotb_id IS NOT NULL', [issuerPubkey]))[0].wotb_id)
} }
@MonitorExecutionTime() @MonitorExecutionTime()
...@@ -102,8 +102,8 @@ export class DataFinder { ...@@ -102,8 +102,8 @@ export class DataFinder {
} }
@MonitorExecutionTime() @MonitorExecutionTime()
query(sql: string, params?: any[]) { query(sql: string, params?: any[]): Promise<any> {
return this.duniterServer.dal.peerDAL.query(sql, params || []) throw Error('Unhandled in Duniter 1.7.x')
} }
@MonitorExecutionTime() @MonitorExecutionTime()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment