feat: allow admins to edit the "owned" status of games
This commit is contained in:
parent
c49db43a43
commit
1586309d3a
@ -110,6 +110,7 @@ def edit_game(game_id):
|
||||
return jsonify({'message': 'Game not found!'}), 404
|
||||
game.title = data.get('title', game.title)
|
||||
game.image = data.get('image', game.image)
|
||||
game.owned = data.get('owned', game.owned) # Update owned status if provided
|
||||
|
||||
db.session.commit()
|
||||
return jsonify({'message': 'Game updated!'}), 200
|
||||
|
Loading…
Reference in New Issue
Block a user