Skip to content

Commit 1f64a3b

Browse files
committed
chore: use unique id for search time stamping
Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com>
1 parent a6b2971 commit 1f64a3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/NotionService/NotionAPIWrapper.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ class NotionAPIWrapper {
181181
}
182182

183183
async search(query: string, all?: boolean) {
184-
console.time(`search:${all}`);
184+
const rid = crypto.randomUUID();
185+
console.time(`search:${rid}`);
185186
const response = await this.notion.search({
186187
page_size: DEFAULT_PAGE_SIZE_LIMIT,
187188
query,
@@ -211,7 +212,7 @@ class NotionAPIWrapper {
211212
}
212213
}
213214

214-
console.timeEnd(`search:${all}`);
215+
console.timeEnd(`search:${rid}`);
215216
return response;
216217
}
217218

0 commit comments

Comments
 (0)