mirror of https://github.com/LemmyNet/lemmy.git
Fix report count endpoint error (#4167)
parent
a00313e680
commit
e573010202
|
@ -1,4 +1,4 @@
|
||||||
use actix_web::web::{Data, Json};
|
use actix_web::web::{Data, Json, Query};
|
||||||
use lemmy_api_common::{
|
use lemmy_api_common::{
|
||||||
context::LemmyContext,
|
context::LemmyContext,
|
||||||
person::{GetReportCount, GetReportCountResponse},
|
person::{GetReportCount, GetReportCountResponse},
|
||||||
|
@ -14,7 +14,7 @@ use lemmy_utils::error::LemmyError;
|
||||||
|
|
||||||
#[tracing::instrument(skip(context))]
|
#[tracing::instrument(skip(context))]
|
||||||
pub async fn report_count(
|
pub async fn report_count(
|
||||||
data: Json<GetReportCount>,
|
data: Query<GetReportCount>,
|
||||||
context: Data<LemmyContext>,
|
context: Data<LemmyContext>,
|
||||||
local_user_view: LocalUserView,
|
local_user_view: LocalUserView,
|
||||||
) -> Result<Json<GetReportCountResponse>, LemmyError> {
|
) -> Result<Json<GetReportCountResponse>, LemmyError> {
|
||||||
|
|
Loading…
Reference in New Issue