Use shorthand typing

This commit is contained in:
Andrew Kingston 2023-07-17 14:45:13 +01:00
parent b1bf8dd774
commit 1584ee4c95
1 changed files with 1 additions and 1 deletions

View File

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