We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b92c9e5 commit 3b9bb94Copy full SHA for 3b9bb94
1 file changed
src/handlers/syncAll.ts
@@ -8,6 +8,8 @@ export async function syncAllHandler(
8
_req: Request,
9
res: Response
10
) {
11
+ const start = Date.now();
12
+
13
const client = GetClient();
14
const installations = await client.GetInstallations();
15
@@ -24,5 +26,12 @@ export async function syncAllHandler(
24
26
25
27
const results = await Promise.all(orgSyncPromises);
28
- return res.status(200).json(results);
29
+ const end = Date.now();
30
31
+ const resultObject = {
32
+ orgSyncResults: results,
33
+ timeToCompleteInMilliseconds: end - start
34
+ }
35
36
+ return res.status(200).json(resultObject);
37
}
0 commit comments