Skip to content
This repository was archived by the owner on Dec 13, 2024. It is now read-only.
This repository was archived by the owner on Dec 13, 2024. It is now read-only.

Bug: fail to save assign data and cause not sending a prepay notification #405

@shungo0222

Description

@shungo0222

DEADLINE (including timezone)

Describe the bug

Screen Shot 2023-11-23 at 23 51 02

上記のプロジェクトで発生した。(projectId: L2gNgZgYi1HZPrqVKevD

情報

  • createdAt:2023-11-18T04:48:19.956Z
  • deadline:2023-11-19T21:00:00.000Z
  • prepay:2023-11-20T09:26:37.000Z(before : Waiting for connecting lancer’s wallet, after : Waiting for Submission, txHash : 0x622f8c2e8dda91228152b7a91ff7606817a52b5298dd6c5bc3b9b0d5929c2b3a)
  • withdrowToDepositorByOwner:2023-11-20T21:01:15.000Z(before : Waiting for Submission, after : Complete (No Submission By Lancer), txHash : 0x87c059fa68c56963173618493e8dd7d27b767b7968ea8700513a439400bb482a)

考察

メールが届かない原因はクライアントがプロジェクトにアサインしたときに、そのときの情報がDBにうまく保存されてなくて、ステータスが想定されていたやつに変更されなかったからだった。
想定されていたフローは「Waiting for connecting lancer’s wallet -> Pay in advance -> Waiting for Submission」だったけど、実際は「Waiting for connecting lancer’s wallet -> Waiting for Submission」だったから条件に当てはまらなくてメール送信がされなかった。
他のプロジェクトではこれが確認されなかったから、今回たまたま起きたんだと思う。

Todo

  • まずは上記の情報から問題点を洗い出す(エラーハンドリング不足、deadlineがcreatedAtに近いとprepayがdeadline後になってしまうなど)

To Reproduce

Expected behavior

Screenshots

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Linked issues

#xx

Additional context

Metadata

Metadata

Assignees

Labels

prio:lowThe priority is lowtype:backendDevelopment of data managementtype:bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions