aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/config
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-10-30 20:11:18 +0300
committerGravatar Vitaly Takmazov2021-10-30 20:11:18 +0300
commite71e88549be3205107ddd69e43fcf6bbc15e82fd (patch)
treef652469576dee0622e84261fbd05ef040d07ee5f /src/main/java/com/juick/config
parent582aae8c0cf4afa1583ad7351320f33c1a8de57f (diff)
Move deleted messages to archive user
Diffstat (limited to 'src/main/java/com/juick/config')
-rw-r--r--src/main/java/com/juick/config/WebConfig.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/juick/config/WebConfig.java b/src/main/java/com/juick/config/WebConfig.java
index 94f30bd5..fcd9a46b 100644
--- a/src/main/java/com/juick/config/WebConfig.java
+++ b/src/main/java/com/juick/config/WebConfig.java
@@ -193,9 +193,15 @@ public class WebConfig implements WebMvcConfigurer {
private UserService userService;
@Value("${service_user:juick}")
private String serviceUsername;
+ @Value("${archive_user:archive}")
+ private String archiveUsername;
@Bean
public User serviceUser() {
return userService.getUserByName(serviceUsername);
}
+ @Bean
+ public User archiveUser() {
+ return userService.getUserByName(archiveUsername);
+ }
}