fix(휴가): 메일 실패 시 Gmail 연결 안내·다시 보내기 — 휴가 권한 없는 협의자 포함
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -189,6 +189,8 @@ def deliver(store: Any, inout_store: Any, *, event: str, req: dict[str, Any], ac
|
||||
|
||||
if event == "submitted":
|
||||
for c in req.get("consults") or []:
|
||||
if c.get("state", "대기") != "대기": # 다시 보내기 — 이미 처리한 협의자에게는 안 보냄
|
||||
continue
|
||||
mail = build("consult_request", req, actor_name=name, actor_email=email, link=link, name_of=name_of, consult=c)
|
||||
_send_and_log(store, inout_store, "consult_request", req, _uniq([c.get("email")]), mail, email, name)
|
||||
result: dict[str, Any] = {"ok": False, "via": "", "to": to, "error": ""}
|
||||
|
||||
Reference in New Issue
Block a user