in src/loader/utils/scorekeep.js [64:81]
export async function updateSession(sessionId, sessionName, ownerId) {
const response = await fetch(
`http://scorekeep-env.eba-mi3pgqai.us-west-2.elasticbeanstalk.com/api/session/${sessionId}`,
{
method: 'PUT',
headers: { 'Content-Type': 'application/json;charset=utf-8' },
body: JSON.stringify({
id: sessionId,
owner: ownerId,
name: sessionName,
users: null,
games: null
})
}
);
// Example response: {"id":"2HM515LD","owner":"JVTUDFG6","name":"games","users":null,"games":null}
return response.json();
}