1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Use shorthand typing

This commit is contained in:
Andrew Kingston 2023-07-17 14:45:13 +01:00
parent b1bf8dd774
commit 1584ee4c95

View file

@ -202,7 +202,7 @@ export async function fetch(ctx: UserCtx) {
// Get all builder sessions in each app
const sessions = await builderSocket?.getRoomSessions(appIds)
if (sessions?.length) {
let appSessionMap: { [key: string]: SocketSession[] } = {}
let appSessionMap: Record<string, SocketSession[]> = {}
sessions.forEach(session => {
const room = session.room
if (!room) {