Compare commits
1 Commits
9b2c6b82f2
...
3084a46dcc
| Author | SHA1 | Date | |
|---|---|---|---|
| 3084a46dcc |
+7
-4
@@ -13,7 +13,8 @@ use crate::{
|
||||
models::squad::{SaveSquadRequest, SlotAssignment, SquadReplacement},
|
||||
services::{
|
||||
club as club_svc, profile as profile_svc, squad as squad_svc,
|
||||
squad::SquadExtState, squad_rules::{ClientReportedEvaluation, DefaultSquadRules},
|
||||
squad::SquadExtState,
|
||||
squad_rules::{ClientReportedEvaluation, DefaultSquadRules},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -104,7 +105,6 @@ fn squad_response(
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// ─────────── Game-extension-aware squad transport (host composition) ─────────
|
||||
//
|
||||
// These two routes expose the already-existing extension services
|
||||
@@ -140,7 +140,10 @@ pub async fn get_squad_ext(
|
||||
"payload": row.payload,
|
||||
"stored_fingerprint": row.canonical_fingerprint,
|
||||
}),
|
||||
SquadExtState::Stale { stored, current_fingerprint } => json!({
|
||||
SquadExtState::Stale {
|
||||
stored,
|
||||
current_fingerprint,
|
||||
} => json!({
|
||||
"state": "stale",
|
||||
"schema_version": stored.schema_version,
|
||||
"payload": stored.payload,
|
||||
@@ -231,4 +234,4 @@ pub async fn put_squad_replace(
|
||||
"canonical_fingerprint": out.canonical_fingerprint,
|
||||
"slots_written": out.slots_written,
|
||||
})))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user