chore: remove test code

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-05-26 16:55:32 +02:00
parent 702b0fc110
commit f20c0d8a4c
@@ -60,7 +60,6 @@ export class Stitcher {
async stitch(entityRefs: Set<string>) {
for (const entityRef of entityRefs) {
const endTimer = createTimer('stitch');
try {
const ticket = uuid();
const ticketRows = await this.database<DbFinalEntitiesRow>(
@@ -236,7 +235,6 @@ export class Stitcher {
.where({ entity_id: entityId })
.delete();
await this.database.batchInsert('search', searchEntries, BATCH_SIZE);
endTimer();
} catch (error) {
this.logger.error(`Failed to stitch ${entityRef}, ${error}`);
}