Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ spring:

jpa:
hibernate:
ddl-auto: create
ddl-auto: {DDL_AUTO:create}
show-sql: true
defer-datasource-initialization: true
sql:
init:
mode: always
mode: {SQL_INIT_MODE:always}
jwt:
secret:
access-secret-key: ${JWT_SECRET}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private List<NotificationEntity> generateNotification(final Long userId, final L
String clickUrl = frontendUrl + path;
List<String> tokens = deviceTokenRepository.findActiveTokensByUserId(userId);
if (tokens.isEmpty()) {
final NotificationEntity notification = NotificationEntity.create(userId, storeId, title, content, null, clickUrl, type, null);
final NotificationEntity notification = NotificationEntity.createWithMetaId(userId, storeId, title, content, null, clickUrl, type, null, scheduleId);
return List.of(notification);
}
return tokens.stream()
Expand Down