Skip to content

Commit

Permalink
Merge pull request #989 from populationgenomics/dev
Browse files Browse the repository at this point in the history
Release - Fix 500 error when creating enums
  • Loading branch information
dancoates authored Nov 13, 2024
2 parents 1d7dc0e + ab02bd2 commit f4e0d68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/routes/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ async def get(connection=get_projectless_db_connection) -> list[str]:
return await e(connection).get()

@router.post('/' + hyphenated_name, operation_id='post' + camel_case_name + 's')
async def post(
new_type: str, connection=get_projectless_db_connection
) -> list[str]:
async def post(new_type: str, connection=get_projectless_db_connection) -> str:
return await e(connection).insert(new_type)


Expand Down

0 comments on commit f4e0d68

Please sign in to comment.