chore: fixing types for search stitching

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-04-20 14:29:27 +02:00
parent c37efd3f87
commit a3a49fb088
@@ -213,7 +213,7 @@ export class Stitcher {
// to write the search index.
const searchEntries = buildEntitySearch(entityId, entity);
const rowsChanged = await this.database<DbFinalEntitiesRow>(
const amountOfRowsChanged = await this.database<DbFinalEntitiesRow>(
'final_entities',
)
.update({
@@ -225,7 +225,7 @@ export class Stitcher {
.onConflict('entity_id')
.merge(['final_entity', 'hash']);
if (rowsChanged.length === 0) {
if (amountOfRowsChanged === 0) {
this.logger.debug(
`Entity ${entityRef} is already processed, skipping write.`,
);