Closed skull8888888 closed 1 month ago
[!IMPORTANT] Add DELETE method to route.ts for dataset deletion with user permission checks and error handling. Behavior: Adds DELETE method to route.ts for deleting datasets by datasetIds. Checks if the current user is a member of the project before proceeding. Returns 403 if user is not a member, 400 if no datasetIds are provided, and 500 on deletion error. Database: Uses db.delete with conditions on datasets.id and datasets.projectId to delete datasets. This description was created by for 5065f70e8dded170f5ea5f59ed7092a37bbca681. It will automatically update as commits are pushed.
[!IMPORTANT] Add DELETE method to route.ts for dataset deletion with user permission checks and error handling.
route.ts
DELETE
datasetIds
db.delete
datasets.id
datasets.projectId
This description was created by for 5065f70e8dded170f5ea5f59ed7092a37bbca681. It will automatically update as commits are pushed.