Update project schema and fix tests

This commit is contained in:
grossmj committed 2026-02-22 18:13:08 +08:00
1 parent 8ab34924b5
commit be4b87e8cd
3 files changed
+4 -4

No files matched your search

+1 -2
View File
@@ -123,8 +123,7 @@ async def create_project(
controller = Controller.instance()
project_dict = jsonable_encoder(project_data, exclude_unset=True)
if "created_by" not in project_dict:
project_dict["created_by"] = current_user.username
project_dict["created_by"] = current_user.username
project = await controller.add_project(**project_dict)
return project.asdict()