From a4585a4c914a5a31f8345d02ca425e150e7ea630 Mon Sep 17 00:00:00 2001 From: fengzero Date: Tue, 22 Mar 2022 07:38:11 +0000 Subject: [PATCH] #351 fix the tag id change when modifying the tag attribute --- plugins/restful/datatag_handle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/restful/datatag_handle.c b/plugins/restful/datatag_handle.c index d6b06acb..05d459bc 100644 --- a/plugins/restful/datatag_handle.c +++ b/plugins/restful/datatag_handle.c @@ -197,9 +197,9 @@ void handle_update_tags(nng_aio *aio) break; } - tag = - neu_datatag_alloc(req->tags[i].attribute, req->tags[i].type, - req->tags[i].address, req->tags[i].name); + tag = neu_datatag_alloc_with_id( + req->tags[i].attribute, req->tags[i].type, + req->tags[i].address, req->tags[i].name, req->tags[i].id); if (NULL == tag) { code = NEU_ERR_ENOMEM;