prettiered again
This commit is contained in:
parent
120750b42a
commit
a809981179
@ -56,7 +56,8 @@ function getSession(sessionIdOrRequest: string | FindSessionRequest): any[] {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
} else {
|
}
|
||||||
|
|
||||||
const request = sessionIdOrRequest as FindSessionRequest;
|
const request = sessionIdOrRequest as FindSessionRequest;
|
||||||
const matchingSessions = sessions.filter(session => {
|
const matchingSessions = sessions.filter(session => {
|
||||||
for (const key in request) {
|
for (const key in request) {
|
||||||
@ -72,7 +73,6 @@ function getSession(sessionIdOrRequest: string | FindSessionRequest): any[] {
|
|||||||
id: session.sessionId
|
id: session.sessionId
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function getSessionByCreatorID(creatorId: string): Session | undefined {
|
function getSessionByCreatorID(creatorId: string): Session | undefined {
|
||||||
return sessions.find(session => session.creatorId === creatorId);
|
return sessions.find(session => session.creatorId === creatorId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user