Use shorthand typing
This commit is contained in:
parent
b1bf8dd774
commit
1584ee4c95
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue