Browse Source

Try to fix timing of delete confirmation notice sent out

pull/55/head
Kristijan Mitrovic 4 years ago
parent
commit
dd487995ac
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      bubble-server/src/main/java/bubble/service/account/StandardAccountMessageService.java

+ 2
- 1
bubble-server/src/main/java/bubble/service/account/StandardAccountMessageService.java View File

@@ -140,11 +140,12 @@ public class StandardAccountMessageService implements AccountMessageService {
final AccountMessage request = messageDAO.findOperationRequest(approval);
if (request == null) throw invalidEx("err.approvalToken.invalid", "Request could not be found for approval: "+approval);
final AccountPolicy policy = policyDAO.findSingleByAccount(account.getUuid());
final AccountMessage confirm = messageDAO.create(new AccountMessage(approval).setMessageType(AccountMessageType.confirmation));
approval.setRequest(request);
approval.setRequestContact(policy.findContactByUuid(approval.getRequest().getContact()));
getCompletionHandler(approval).confirm(approval, data);

final AccountMessage confirm = messageDAO.create(
new AccountMessage(approval).setMessageType(AccountMessageType.confirmation));
if (approval.hasConfirmationTokensToRemove()) {
final RedisService tokens = getConfirmationTokens();
for (String toRemove : approval.getConfirmationTokensToRemove()) tokens.del(toRemove);


Loading…
Cancel
Save