mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
log index updated
This commit is contained in:
parent
0616f68eb0
commit
0b3e0a59cb
@ -98,9 +98,14 @@ pub async fn update_index(
|
|||||||
meilisearch: GuardedData<Private, MeiliSearch>,
|
meilisearch: GuardedData<Private, MeiliSearch>,
|
||||||
path: web::Path<IndexParam>,
|
path: web::Path<IndexParam>,
|
||||||
body: web::Json<UpdateIndexRequest>,
|
body: web::Json<UpdateIndexRequest>,
|
||||||
|
analytics: web::Data<&'static dyn Analytics>,
|
||||||
) -> Result<HttpResponse, ResponseError> {
|
) -> Result<HttpResponse, ResponseError> {
|
||||||
debug!("called with params: {:?}", body);
|
debug!("called with params: {:?}", body);
|
||||||
let body = body.into_inner();
|
let body = body.into_inner();
|
||||||
|
analytics.publish(
|
||||||
|
"Index Updated".to_string(),
|
||||||
|
json!({ "with_primary_key": body.primary_key}),
|
||||||
|
);
|
||||||
let settings = IndexSettings {
|
let settings = IndexSettings {
|
||||||
uid: body.uid,
|
uid: body.uid,
|
||||||
primary_key: body.primary_key,
|
primary_key: body.primary_key,
|
||||||
|
Loading…
Reference in New Issue
Block a user