mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(api): rename shard_id field in shard state to id
This commit is contained in:
parent
62cd28b1f0
commit
8d12df4943
1 changed files with 1 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ use std::io::Result;
|
|||
fn main() -> Result<()> {
|
||||
prost_build::Config::new()
|
||||
.type_attribute(".ShardState", "#[derive(serde::Serialize)]")
|
||||
.field_attribute(".ShardState.shard_id", "#[serde(rename = \"id\")]")
|
||||
.compile_protos(&["../../proto/state.proto"], &["../../proto/"])?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue