@@ -162,21 +162,21 @@ public Mono<Void> publishApplicationCommonEvent(ApplicationView applicationView,
162162 String description = tuple .getT3 ().getRight ();
163163 ApplicationInfoView applicationInfoView = applicationView .getApplicationInfoView ();
164164 ApplicationCommonEvent event = ApplicationCommonEvent .builder ()
165- .orgId (orgMember .getOrgId ())
166- .userId (orgMember .getUserId ())
167- .applicationId (applicationInfoView .getApplicationId ())
168- .applicationGid (applicationInfoView .getApplicationGid ())
169- .applicationName (applicationInfoView .getName ())
170- .applicationCategory (category )
171- .applicationDescription (description )
172- .type (eventType )
173- .folderId (optional .map (Folder ::getId ).orElse (null ))
174- .folderName (optional .map (Folder ::getName ).orElse (null ))
175- .oldFolderId (optionalFrom .map (Folder ::getId ).orElse (null ))
176- .oldFolderName (optionalFrom .map (Folder ::getName ).orElse (null ))
177- .isAnonymous (anonymous )
178- .sessionHash (Hashing .sha512 ().hashString (token , StandardCharsets .UTF_8 ).toString ())
179- .build ();
165+ .orgId (orgMember .getOrgId ())
166+ .userId (orgMember .getUserId ())
167+ .applicationId (applicationInfoView .getApplicationId ())
168+ .applicationGid (applicationInfoView .getApplicationGid ())
169+ .applicationName (applicationInfoView .getName ())
170+ .applicationCategory (category )
171+ .applicationDescription (description )
172+ .type (eventType )
173+ .folderId (optional .map (Folder ::getId ).orElse (null ))
174+ .folderName (optional .map (Folder ::getName ).orElse (null ))
175+ .oldFolderId (optionalFrom .map (Folder ::getId ).orElse (null ))
176+ .oldFolderName (optionalFrom .map (Folder ::getName ).orElse (null ))
177+ .isAnonymous (anonymous )
178+ .sessionHash (Hashing .sha512 ().hashString (token , StandardCharsets .UTF_8 ).toString ())
179+ .build ();
180180 event .populateDetails ();
181181 applicationEventPublisher .publishEvent (event );
182182 })
@@ -324,8 +324,8 @@ public Mono<Void> publishApplicationVersionChangeEvent(String applicationId, Str
324324 return sessionUserService .getVisitorOrgMemberCache ()
325325 .zipWith (sessionUserService .getVisitorToken ())
326326 .zipWith (Mono .defer (() -> applicationService .findById (applicationId )
327- .zipWhen (application -> application .getCategory (applicationRecordServiceImpl ))
328- .zipWhen (application -> application .getT1 ().getDescription (applicationRecordServiceImpl ))))
327+ .zipWhen (application -> application .getCategory (applicationRecordServiceImpl ))
328+ .zipWhen (application -> application .getT1 ().getDescription (applicationRecordServiceImpl ))))
329329 .doOnNext (tuple -> {
330330 OrgMember orgMember = tuple .getT1 ().getT1 ();
331331 String token = tuple .getT1 ().getT2 ();
@@ -340,7 +340,7 @@ public Mono<Void> publishApplicationVersionChangeEvent(String applicationId, Str
340340 .applicationName (application .getName ())
341341 .applicationCategory (category )
342342 .applicationDescription (description )
343- .type (EventType .APPLICATION_SHARING_CHANGE )
343+ .type (EventType .APPLICATION_VERSION_CHANGE )
344344 .tag (newtag )
345345 .isAnonymous (anonymous )
346346 .sessionHash (Hashing .sha512 ().hashString (token , StandardCharsets .UTF_8 ).toString ())
0 commit comments