Skip to content

Commit 27db9f3

Browse files
Copilothotlong
andcommitted
docs: add transaction comment clarifying ObjectQL limitation per code review
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent fac396d commit 27db9f3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/plugins/plugin-auth/src/auth-manager.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ export class AuthManager {
109109
return (_options: any) => ({
110110
id: 'objectql',
111111
...adapter,
112+
// ObjectQL does not yet expose a separate transaction context,
113+
// so we pass the adapter itself. better-auth patches this
114+
// automatically when missing, but providing it avoids a
115+
// runtime warning from getBaseAdapter().
112116
transaction: async <R>(cb: (trx: any) => Promise<R>): Promise<R> => cb(adapter),
113117
});
114118
}

0 commit comments

Comments
 (0)