Skip to content

Commit 8fe600e

Browse files
committed
backend: add firmware version to get_chargers route
1 parent 6a485e9 commit 8fe600e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/routes/charger/get_chargers.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pub struct GetChargerSchema {
4747
port: i32,
4848
valid: bool,
4949
last_state_change: Option<i64>,
50+
firmware_version: String,
5051
}
5152

5253
/// Get all chargers that the current user has access to.
@@ -129,6 +130,7 @@ pub async fn get_chargers(
129130
port: c.webinterface_port,
130131
valid: allowed_user.valid,
131132
last_state_change: c.last_state_change.map(|ts| ts.and_utc().timestamp()),
133+
firmware_version: c.firmware_version,
132134
}
133135
})
134136
.collect::<Vec<GetChargerSchema>>();

0 commit comments

Comments
 (0)