Skip to content

Commit 0768846

Browse files
committed
Expose area_id in get_event and get_events RPC
1 parent 8e1d22c commit 0768846

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

docs/rpc/event/get_event.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Retreives an event by id
2323
"website": "https://www.meetup.com/phuket-bitcoin-meetup/events/310120143/",
2424
"starts_at": "2025-08-29T19:00:00+07:00",
2525
"ends_at": null,
26-
"cron_schedule": null
26+
"cron_schedule": null,
27+
"area_id": null
2728
}
2829
```
2930

docs/rpc/event/get_events.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ Events with no `starts_at` (permanent events) are always included regardless of
3232
"website": "https://www.meetup.com/phuket-bitcoin-meetup/events/310120143/",
3333
"starts_at": "2025-08-29T19:00:00+07:00",
3434
"ends_at": null,
35-
"cron_schedule": null
35+
"cron_schedule": null,
36+
"area_id": null
3637
}
3738
]
3839
```

src/rpc/event/get_event.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub struct Res {
2323
#[serde(with = "time::serde::rfc3339::option")]
2424
ends_at: Option<OffsetDateTime>,
2525
cron_schedule: Option<String>,
26+
pub area_id: Option<i64>,
2627
}
2728

2829
impl From<Event> for Res {
@@ -36,6 +37,7 @@ impl From<Event> for Res {
3637
starts_at: event.starts_at,
3738
ends_at: event.ends_at,
3839
cron_schedule: event.cron_schedule,
40+
area_id: event.area_id,
3941
}
4042
}
4143
}

src/rpc/event/get_events.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub struct Res {
1818
#[serde(with = "time::serde::rfc3339::option")]
1919
pub ends_at: Option<OffsetDateTime>,
2020
pub cron_schedule: Option<String>,
21+
pub area_id: Option<i64>,
2122
}
2223

2324
impl From<Event> for Res {
@@ -31,6 +32,7 @@ impl From<Event> for Res {
3132
starts_at: event.starts_at,
3233
ends_at: event.ends_at,
3334
cron_schedule: event.cron_schedule,
35+
area_id: event.area_id,
3436
}
3537
}
3638
}

0 commit comments

Comments
 (0)