From cb5903daebcf2f5ad48d88b5045d68b0c7c99f4f Mon Sep 17 00:00:00 2001
From: Benoit Lavenier <benoit.lavenier@e-is.pro>
Date: Wed, 17 May 2023 09:44:14 +0200
Subject: [PATCH] Small changes

---
 app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts b/app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts
index db08c3eec..03bd59df9 100644
--- a/app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts
+++ b/app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts
@@ -219,14 +219,14 @@ export class SqliteIIndex extends SqliteTable<IindexEntry>
 
   @MonitorExecutionTime()
   async getOldFromPubkey(pub: string): Promise<OldIindexEntry | null> {
-    const identities = await this.find(
+    const entries = await this.find(
       "SELECT * FROM iindex WHERE pub = ? order by writtenOn ASC",
       [pub]
     );
-    if (!identities.length) {
+    if (!entries.length) {
       return null;
     }
-    return OldTransformers.toOldIindexEntry(reduce(identities));
+    return OldTransformers.toOldIindexEntry(reduce(entries));
   }
 
   @MonitorExecutionTime()
-- 
GitLab