Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kafkasl committed Jun 11, 2021
1 parent 31a2ae6 commit c3ec155
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/api/route-services/work-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,16 @@ class WorkResponseService {
async notifyDataUpdate(responseForClient) {
const { experimentId } = responseForClient.request;

// this should resend the request so the UI can replay it
// instead of sending the data to everyone
// this should resend the request so the UI can make it again if it needs the data
// instead of sending the data directly to everyone
const response = {
response: responseForClient,
// request: responseForClient.request,
status: NEW,
type: DATA_UPDATE,
};

console.log('responseForClientDebug');
console.log(responseForClient);

if (responseForClient.request.body.name === 'ClusterCells') {
const cellSets = JSON.parse(responseForClient.results[0].body);

console.log('cellSetsDebug');
console.log(cellSets);
await (new ExperimentService()).updateLouvainCellSets(experimentId, cellSets);
}

Expand Down

0 comments on commit c3ec155

Please sign in to comment.