79229964

Date: 2024-11-27 11:03:00
Score: 2
Natty:
Report link

Focus on this lines:

res (d/transact conn [{:user/id user-id
                       :user/email email
                       :user/verification-token token}])
db-after (d/db conn)

d/transact returns a "future". The transaction is not completed yet Calling d/db immediately after d/transact, it will get a db before the transaction. To fix that:

  1. Add a deref to the transaction @(d/transact ...
  2. Get your db-after from the result of the transaction {:keys [db-after]} @(d/transact

Also a few tips:

Reasons:
  • RegEx Blacklisted phrase (2.5): Please clarify
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: souenzzo