diff options
author | Vitaly Takmazov | 2021-10-30 20:11:18 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-10-30 20:11:18 +0300 |
commit | e71e88549be3205107ddd69e43fcf6bbc15e82fd (patch) | |
tree | f652469576dee0622e84261fbd05ef040d07ee5f /src/main/java/com/juick/config | |
parent | 582aae8c0cf4afa1583ad7351320f33c1a8de57f (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.java | 6 |
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); + } } |