Commit 8bbac86d authored by nanahira's avatar nanahira

Update dbreader.ts

parent d0423ae3
Pipeline #29395 passed with stages
in 1 minute and 18 seconds
......@@ -67,6 +67,7 @@ export class Card {
}
async getRelatedCards(db: Database) {
const code = this.code;
if (code === 5405694) return [];
const moreCodes: number[] = (await db.all('SELECT id FROM datas WHERE id > ? AND id <= ? AND (alias = ? OR (type & 0x4000) > 0)', [code, code + 20, code])).map(m => m.id);
const cards = await Promise.all(moreCodes.map(code => this.createCardFromRelatedCode(code, db)));
return cards;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment