Add admin endpoint for updating games #4

Merged
Zigzagill merged 8 commits from update-functions into main 2026-05-24 05:22:46 +00:00
Member

Pushing what I hacked into existence tonight, will revisit later :)

Pushing what I hacked into existence tonight, will revisit later :)
Zigzagill added 2 commits 2026-05-22 05:26:33 +00:00
Owner

@Zigzagill remeber to run cargo fmt before submitting last thing, and also remember to uncomment the //sync_scores(actor_addr.clone()).await; part

@Zigzagill remeber to run `cargo fmt` before submitting last thing, and also remember to uncomment the `//sync_scores(actor_addr.clone()).await;` part
Zigzagill added 2 commits 2026-05-24 04:27:08 +00:00
Zigzagill force-pushed update-functions from e234499042 to 1df44a3e35 2026-05-24 04:35:48 +00:00 Compare
Zigzagill added 2 commits 2026-05-24 05:03:40 +00:00
Zigzagill changed title from [WIP] Add admin endpoints for updating games/teams to Add admin endpoints for updating games/teams 2026-05-24 05:03:49 +00:00
Zigzagill changed title from Add admin endpoints for updating games/teams to Add admin endpoint for updating games 2026-05-24 05:07:02 +00:00
ammaratef45 approved these changes 2026-05-24 05:13:50 +00:00
ammaratef45 left a comment
Owner

lgtm, comments are so we can follow-up on this with little improvements

lgtm, comments are so we can follow-up on this with little improvements
src/main.rs Outdated
@ -178,0 +190,4 @@
}
#[post("/admin/game/update")]
async fn update_game(pool: web::Data<Pool>, form: web::Form<UpdateGameForm>) -> impl Responder {
Owner

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

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
src/main.rs Outdated
@ -178,0 +191,4 @@
#[post("/admin/game/update")]
async fn update_game(pool: web::Data<Pool>, form: web::Form<UpdateGameForm>) -> impl Responder {
println!("{form:?}");
Owner

should remove this if no longer need it for debugging hehe

should remove this if no longer need it for debugging hehe
Zigzagill marked this conversation as resolved
Zigzagill added 1 commit 2026-05-24 05:14:48 +00:00
Zigzagill added 1 commit 2026-05-24 05:15:37 +00:00
Zigzagill force-pushed update-functions from f06c9e05a1 to 62275d8582 2026-05-24 05:21:59 +00:00 Compare
Zigzagill merged commit cc187bc183 into main 2026-05-24 05:22:46 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RTM/mapbattle#4
No description provided.