-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
299 refactor frontend to backend 20 #337
Conversation
…odate for storing the experiments properly.
…o be called updateExperimentName and now does an api call to the new [... expIdToUpdateName].tsx and utilises MongoDB. Needs to be tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix the typing, then will approve
|
||
const experiment = await db | ||
.collection(COLLECTION_EXPERIMENTS) | ||
.deleteOne({ '_id': expIdToDelete as any }); // Assuming expId is the unique identifier in the collection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure that this returns what you are expecting
return; | ||
} | ||
|
||
const experimentData: ExperimentData = req.body; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually ExperimentData? or just a JSON?
Please look over this carefully