wolfboys commented on code in PR #3615:
URL: 
https://github.com/apache/incubator-streampark/pull/3615#discussion_r1528879844


##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/service/impl/AccessTokenServiceImpl.java:
##########
@@ -116,10 +116,9 @@ public RestResponse toggleToken(Long tokenId) {
             ? AccessToken.STATUS_DISABLE
             : AccessToken.STATUS_ENABLE;
 
-    AccessToken updateObj = new AccessToken();
-    updateObj.setStatus(status);
-    updateObj.setId(tokenId);
-    return RestResponse.success(this.updateById(updateObj));
+    tokenInfo.setStatus(status);
+    tokenInfo.setId(tokenId);

Review Comment:
   We don't need to set id



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to