forked from alemi/upub
fix: wrong id type for addressing model
This commit is contained in:
parent
2958107c49
commit
e02a48d9da
2 changed files with 5 additions and 2 deletions
|
@ -31,7 +31,10 @@ pub async fn get(State(ctx) : State<Context>, Query(page): Query<Pagination>) ->
|
||||||
))
|
))
|
||||||
.ld_context()
|
.ld_context()
|
||||||
)),
|
)),
|
||||||
Err(_e) => Err(StatusCode::INTERNAL_SERVER_ERROR),
|
Err(e) => {
|
||||||
|
tracing::error!("failed paginating global outbox: {e}");
|
||||||
|
Err(StatusCode::INTERNAL_SERVER_ERROR)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Ok(JsonLD(serde_json::Value::new_object()
|
Ok(JsonLD(serde_json::Value::new_object()
|
||||||
|
|
|
@ -4,7 +4,7 @@ use sea_orm::entity::prelude::*;
|
||||||
#[sea_orm(table_name = "addressing")]
|
#[sea_orm(table_name = "addressing")]
|
||||||
pub struct Model {
|
pub struct Model {
|
||||||
#[sea_orm(primary_key)]
|
#[sea_orm(primary_key)]
|
||||||
pub id: String,
|
pub id: i64,
|
||||||
pub actor: String,
|
pub actor: String,
|
||||||
pub activity: String,
|
pub activity: String,
|
||||||
pub object: Option<String>,
|
pub object: Option<String>,
|
||||||
|
|
Loading…
Reference in a new issue