mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-14 03:45:57 +00:00
[AB-292] fixing post target for suggestion reminder
This commit is contained in:
@@ -286,7 +286,7 @@ public class SuggestionServiceBean implements SuggestionService {
|
|||||||
.build();
|
.build();
|
||||||
MessageToSend messageToSend = templateService.renderEmbedTemplate(SUGGESTION_REMINDER_TEMPLATE_KEY, model, serverId);
|
MessageToSend messageToSend = templateService.renderEmbedTemplate(SUGGESTION_REMINDER_TEMPLATE_KEY, model, serverId);
|
||||||
log.info("Reminding about suggestion {} in server {}.", suggestionId.getId(), serverId);
|
log.info("Reminding about suggestion {} in server {}.", suggestionId.getId(), serverId);
|
||||||
List<CompletableFuture<Message>> completableFutures = postTargetService.sendEmbedInPostTarget(messageToSend, SuggestionPostTarget.SUGGESTION, serverId);
|
List<CompletableFuture<Message>> completableFutures = postTargetService.sendEmbedInPostTarget(messageToSend, SuggestionPostTarget.SUGGESTION_REMINDER, serverId);
|
||||||
return FutureUtils.toSingleFutureGeneric(completableFutures);
|
return FutureUtils.toSingleFutureGeneric(completableFutures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user