afterUpdate hook receives query result instead of account object
I’m using better-auth@1.3.26 with the drizzle adapter and neon-http setup.
The account.update.after hook receives a query result object instead of the updated account.
Expected:
after: async (account, ctx) => { ... } → account should be the updated record.
Actual:
account is a query result object like:
{ command: 'UPDATE', rowCount: 1, rows: [], ... }
Is this expected behavior with the drizzle + neon-http setup, and if not, how can I fix or work around it myself?0 Replies