Refactor request listeners to use async functions

This commit is contained in:
Zaid Humaimidi committed 2023-08-09 19:51:40 -07:00
1 parent 58488ebc3d
commit 7b8a49a7ba
11 files changed
+148 -163

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ onConnect(async (db) => {
});
export async function disconnect(): Promise<void> {
if (clientPromise) await (await clientPromise).close();
if (clientPromise != null) await (await clientPromise).close();
}
// Optimize projection by removing overlaps