New Release Causes: `Field user_id not found in model member`

Hello, I updated from better auth 1.2.5 to 1.2.6 and now when I call the following:
    const organizations = await Promise.try(() =>
        auth.api.listOrganizations({
            headers: request.headers,
        }),
    ).catch((error) => {
        console.error(error);
        return [];
    });


I see the following trace:
 →  Error: Field user_id not found in model member
    at getDefaultFieldName (file:///Users/kenny/workspace/firestorm/node_modules/better-auth/dist/shared/better-auth.Bz1paiXf.mjs:79:13)
    at getFieldName (file:///Users/kenny/workspace/firestorm/node_modules/better-auth/dist/shared/better-...


When reverted back to 1.2.5 and it works fine.
Was this page helpful?