Skip to content

Commit

Permalink
Make scheduling togglable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonononoki committed Aug 4, 2024
1 parent c087919 commit c9f430d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.scheduling.annotation.Scheduled;
Expand All @@ -20,6 +21,7 @@
import com.nonononoki.alovoa.repo.UserRepository;

@Transactional
@ConditionalOnProperty("app.scheduling.enabled")
@Service
public class ScheduleService {

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ app.privacy.update-date=2021-06-16
app.tos.update-date=2021-09-22
app.name=Alovoa
app.domain=http://localhost:8080
app.scheduling.enabled=true

#secret in url to verify that the transaction is legit, change in production!
app.donate.kofi.key=kofi123
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/application-test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ app.text.salt=sFRKQAhwdrZq44FQ

app.admin.email=admin@alovoa.com
app.admin.key=password
app.scheduling.enabled=true

# we don't have a working mail setup, so don't test the connection
spring.mail.test-connection=false
Expand Down

0 comments on commit c9f430d

Please sign in to comment.