Add admin endpoint for updating games #4
Reference in New Issue
Block a user
No description provided.
Delete Branch "update-functions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pushing what I hacked into existence tonight, will revisit later :)
@Zigzagill remeber to run
cargo fmtbefore submitting last thing, and also remember to uncomment the//sync_scores(actor_addr.clone()).await;parte234499042to1df44a3e35[WIP] Add admin endpoints for updating games/teamsto Add admin endpoints for updating games/teamsAdd admin endpoints for updating games/teamsto Add admin endpoint for updating gameslgtm, comments are so we can follow-up on this with little improvements
@ -178,0 +190,4 @@}#[post("/admin/game/update")]async fn update_game(pool: web::Data<Pool>, form: web::Form<UpdateGameForm>) -> impl Responder {okay it does look like we need to update stuff both in the games object and the db, we should do it in a follow-up though
@ -178,0 +191,4 @@#[post("/admin/game/update")]async fn update_game(pool: web::Data<Pool>, form: web::Form<UpdateGameForm>) -> impl Responder {println!("{form:?}");should remove this if no longer need it for debugging hehe
f06c9e05a1to62275d8582