mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-19 09:01:10 +02:00
11 lines
313 B
Rust
11 lines
313 B
Rust
use crate::model::entity::note;
|
|
use crate::service::stream::{publish_to_stream, Error, Stream};
|
|
|
|
pub fn publish(antenna_id: String, note: ¬e::Model) -> Result<(), Error> {
|
|
publish_to_stream(
|
|
&Stream::Antenna { antenna_id },
|
|
Some("note"),
|
|
Some(serde_json::to_string(note)?),
|
|
)
|
|
}
|