We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0863c0e commit 70dfc67Copy full SHA for 70dfc67
apps/connect/src/lib/get-app-info-by-ids.ts
@@ -1,11 +1,16 @@
1
-const apps = {
2
- '93bb8907-085a-4a0e-83dd-62b0dc98e793': {
3
- name: 'Todos',
4
- },
5
-};
+// const apps = {
+// '93bb8907-085a-4a0e-83dd-62b0dc98e793': {
+// name: 'Todos',
+// },
+// };
6
7
export const getAppInfoByIds = async (appIds: string[]) => {
8
// sleep for 1 second
9
- await new Promise((resolve) => setTimeout(resolve, 1000));
10
- return apps;
+ // await new Promise((resolve) => setTimeout(resolve, 1000));
+ // return apps;
11
+ const appInfo: Record<string, { name: string }> = {};
12
+ for (const appId of appIds) {
13
+ appInfo[appId] = { name: appId };
14
+ }
15
+ return appInfo;
16
};
0 commit comments