Skip to content

Commit

Permalink
Fix review not working (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
beastoin authored Nov 11, 2024
2 parents aaee3ba + 0366844 commit a40171b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routers/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def review_plugin(plugin_id: str, data: dict, uid: str = Depends(auth.get_curren
if 'score' not in data:
raise HTTPException(status_code=422, detail='Score is required')

plugin = next(filter(lambda x: x.id == plugin_id, get_plugins_data(uid)), None)
plugin = get_plugin_by_id_db(plugin_id, uid)
if not plugin:
raise HTTPException(status_code=404, detail='Plugin not found')

Expand Down

0 comments on commit a40171b

Please sign in to comment.