Sfoglia il codice sorgente

Try to fix timing of delete confirmation notice sent out

pull/55/head
Kristijan Mitrovic 4 anni fa
parent
commit
dd487995ac
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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 Vedi 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);


Caricamento…
Annulla
Salva