mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-24 00:15:17 -05:00
chore: remove incorrect auth cli (#6242)
This commit is contained in:
@@ -61,7 +61,7 @@ export const auth = betterAuth({
|
||||
<Callout type="warn">
|
||||
Please make sure that your Drizzle schema has the necessary relations defined.
|
||||
If you do not see any relations in your Drizzle schema, you can manually add them using the [`relation`](https://orm.drizzle.team/docs/relations) drizzle-orm function
|
||||
or run our latest CLI version `npx auth@latest generate` to generate a new Drizzle schema with the relations.
|
||||
or run our latest CLI version `npx @better-auth/cli@latest generate` to generate a new Drizzle schema with the relations.
|
||||
|
||||
Additionally, you're required to pass each [relation](https://orm.drizzle.team/docs/relations) through the drizzle adapter schema object.
|
||||
</Callout>
|
||||
|
||||
@@ -75,7 +75,7 @@ export const auth = betterAuth({
|
||||
<Callout type="warn">
|
||||
Please make sure that your Prisma schema has the necessary relations defined.
|
||||
If you do not see any relations in your Prisma schema, you can manually add them using the `@relation` directive
|
||||
or run our latest CLI version `npx auth@latest generate` to generate a new Prisma schema with the relations.
|
||||
or run our latest CLI version `npx @better-auth/cli@latest generate` to generate a new Prisma schema with the relations.
|
||||
</Callout>
|
||||
|
||||
## Additional Information
|
||||
|
||||
@@ -347,7 +347,7 @@ export const drizzleAdapter = (db: DB, config: DrizzleAdapterConfig) => {
|
||||
for (const key in values) {
|
||||
if (!schema[key]) {
|
||||
throw new BetterAuthError(
|
||||
`The field "${key}" does not exist in the "${model}" Drizzle schema. Please update your drizzle schema or re-generate using "npx @better-auth/cli generate".`,
|
||||
`The field "${key}" does not exist in the "${model}" Drizzle schema. Please update your drizzle schema or re-generate using "npx @better-auth/cli@latest generate".`,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -368,7 +368,7 @@ export const drizzleAdapter = (db: DB, config: DrizzleAdapterConfig) => {
|
||||
if (options.experimental?.joins) {
|
||||
if (!db.query || !db.query[model]) {
|
||||
logger.error(
|
||||
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx auth generate".`,
|
||||
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx @better-auth/cli@latest generate".`,
|
||||
);
|
||||
logger.info("Falling back to regular query");
|
||||
} else {
|
||||
@@ -434,7 +434,7 @@ export const drizzleAdapter = (db: DB, config: DrizzleAdapterConfig) => {
|
||||
if (options.experimental?.joins) {
|
||||
if (!db.query[model]) {
|
||||
logger.error(
|
||||
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx auth generate".`,
|
||||
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx @better-auth/cli@latest generate".`,
|
||||
);
|
||||
logger.info("Falling back to regular query");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user