fix notification
This commit is contained in:
parent
ee611ed7e0
commit
bd06df58c5
|
@ -56,3 +56,5 @@ backend/target/classes/
|
|||
backend/core/target/maven-archiver/
|
||||
backend/node_modules/.yarn-integrity
|
||||
dmp-frontend/.nx/
|
||||
notification-service/notification-web/src/main/resources/config/app.env
|
||||
backend/web/src/main/resources/config/app.env
|
||||
|
|
|
@ -46,10 +46,6 @@
|
|||
<appender-ref ref="TROUBLESHOOTING"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</logger>
|
||||
<logger name="org.springframework.data.elasticsearch.client.WIRE" level="TRACE" additivity="false">
|
||||
<appender-ref ref="TROUBLESHOOTING"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</logger>
|
||||
<logger name="audit" level="INFO" additivity="false">
|
||||
<appender-ref ref="AUDITING"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
|
|
|
@ -486,5 +486,5 @@ notification:
|
|||
priority-key: null
|
||||
cipher-fields: [ ]
|
||||
template-cache:
|
||||
prefix: ${CACHE_DISAMBIGUATION:}
|
||||
prefix: ${CACHE_DISAMBIGUATION}
|
||||
key-pattern: "{prefix}:Notification_Message_InApp_Template:{key}:v0"
|
|
@ -46,10 +46,6 @@
|
|||
<appender-ref ref="TROUBLESHOOTING"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</logger>
|
||||
<logger name="org.springframework.data.elasticsearch.client.WIRE" level="TRACE" additivity="false">
|
||||
<appender-ref ref="TROUBLESHOOTING"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</logger>
|
||||
<logger name="audit" level="INFO" additivity="false">
|
||||
<appender-ref ref="AUDITING"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
|
|
|
@ -108,6 +108,7 @@ public class MessageBuilderServiceImpl implements MessageInfoBuilderService {
|
|||
if (messageInfo.getTimeZone() == null || messageInfo.getTimeZone().isBlank()) messageInfo.setTimeZone(this.localeService.timezoneName());
|
||||
|
||||
if (this.scope.isMultitenant()) {
|
||||
if (this.scope.isDefaultTenant()) {
|
||||
TenantEntity tenantInfo = this.queryFactory.query(TenantQuery.class)
|
||||
.isActive(IsActive.Active).firstAs(new BaseFieldSet(TenantEntity._id, TenantEntity._code));
|
||||
|
||||
|
@ -122,6 +123,10 @@ public class MessageBuilderServiceImpl implements MessageInfoBuilderService {
|
|||
|
||||
messageInfo.setTenantId(tenantInfo.getId());
|
||||
messageInfo.setTenantCode(tenantInfo.getCode());
|
||||
} else {
|
||||
messageInfo.setTenantId(null);
|
||||
messageInfo.setTenantCode(this.scope.getDefaultTenantCode());
|
||||
}
|
||||
}
|
||||
|
||||
return messageInfo;
|
||||
|
|
Loading…
Reference in New Issue