Skip to content

Commit fd3b25b

Browse files
committed
Fixed type fail
Signed-off-by: Toomore Chiang <[email protected]>
1 parent dbb87b5 commit fd3b25b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/routers/projects.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ async def projects_all(current_user: dict[str, Any] = Depends(get_current_user))
4141
else:
4242
datas.append(
4343
ProjectItem.parse_obj({
44-
'id': data['_id'],
45-
'name': data['name'],
46-
'desc': data['desc'],
44+
'id': data.id,
45+
'name': data.name,
46+
'desc': data.desc,
4747
}))
4848

4949
return ProjectAllOut(datas=datas)

0 commit comments

Comments
 (0)