소스 검색

Try to fix timing of delete confirmation notice sent out

pull/55/head
Kristijan Mitrovic 4 년 전
부모
커밋
dd487995ac
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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 파일 보기

@@ -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);


불러오는 중...
취소
저장