Skip to content

Commit 70dfc67

Browse files
committed
remove hardcoded app name
1 parent 0863c0e commit 70dfc67

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
const apps = {
2-
'93bb8907-085a-4a0e-83dd-62b0dc98e793': {
3-
name: 'Todos',
4-
},
5-
};
1+
// const apps = {
2+
// '93bb8907-085a-4a0e-83dd-62b0dc98e793': {
3+
// name: 'Todos',
4+
// },
5+
// };
66

77
export const getAppInfoByIds = async (appIds: string[]) => {
88
// sleep for 1 second
9-
await new Promise((resolve) => setTimeout(resolve, 1000));
10-
return apps;
9+
// await new Promise((resolve) => setTimeout(resolve, 1000));
10+
// return apps;
11+
const appInfo: Record<string, { name: string }> = {};
12+
for (const appId of appIds) {
13+
appInfo[appId] = { name: appId };
14+
}
15+
return appInfo;
1116
};

0 commit comments

Comments
 (0)