@@ -162,21 +162,21 @@ public Mono<Void> publishApplicationCommonEvent(ApplicationView applicationView,
162
162
String description = tuple .getT3 ().getRight ();
163
163
ApplicationInfoView applicationInfoView = applicationView .getApplicationInfoView ();
164
164
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 ();
180
180
event .populateDetails ();
181
181
applicationEventPublisher .publishEvent (event );
182
182
})
@@ -324,8 +324,8 @@ public Mono<Void> publishApplicationVersionChangeEvent(String applicationId, Str
324
324
return sessionUserService .getVisitorOrgMemberCache ()
325
325
.zipWith (sessionUserService .getVisitorToken ())
326
326
.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 ))))
329
329
.doOnNext (tuple -> {
330
330
OrgMember orgMember = tuple .getT1 ().getT1 ();
331
331
String token = tuple .getT1 ().getT2 ();
@@ -340,7 +340,7 @@ public Mono<Void> publishApplicationVersionChangeEvent(String applicationId, Str
340
340
.applicationName (application .getName ())
341
341
.applicationCategory (category )
342
342
.applicationDescription (description )
343
- .type (EventType .APPLICATION_SHARING_CHANGE )
343
+ .type (EventType .APPLICATION_VERSION_CHANGE )
344
344
.tag (newtag )
345
345
.isAnonymous (anonymous )
346
346
.sessionHash (Hashing .sha512 ().hashString (token , StandardCharsets .UTF_8 ).toString ())
0 commit comments