fix: wrong id type for addressing model

This commit is contained in:
əlemi 2024-03-24 05:55:50 +01:00
parent 2958107c49
commit e02a48d9da
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 5 additions and 2 deletions

View file

@ -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()

View file

@ -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>,