diff --git a/app/src/main/resources/application-dev.yml b/app/src/main/resources/application-dev.yml index 84515802..b68825da 100644 --- a/app/src/main/resources/application-dev.yml +++ b/app/src/main/resources/application-dev.yml @@ -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} diff --git a/batch/src/main/java/com/mangoboss/batch/late_clock_in/domain/service/NotificationLateClockInService.java b/batch/src/main/java/com/mangoboss/batch/late_clock_in/domain/service/NotificationLateClockInService.java index f3898a7b..da471414 100644 --- a/batch/src/main/java/com/mangoboss/batch/late_clock_in/domain/service/NotificationLateClockInService.java +++ b/batch/src/main/java/com/mangoboss/batch/late_clock_in/domain/service/NotificationLateClockInService.java @@ -26,7 +26,7 @@ private List generateNotification(final Long userId, final L String clickUrl = frontendUrl + path; List 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()