Skip to content

Commit

Permalink
fix: missuse of binary expressions (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsttt committed Jan 15, 2024
1 parent 61a8275 commit 06ec5b3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-pears-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

fix missuse of binary expressions
4 changes: 2 additions & 2 deletions cli/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ export const runCli = async (): Promise<CliResults> => {
flags: {
...cliResults.flags,
appRouter: project.appRouter ?? cliResults.flags.appRouter,
noGit: !project.git ?? cliResults.flags.noGit,
noInstall: !project.install ?? cliResults.flags.noInstall,
noGit: !project.git || cliResults.flags.noGit,
noInstall: !project.install || cliResults.flags.noInstall,
importAlias: project.importAlias ?? cliResults.flags.importAlias,
},
};
Expand Down
3 changes: 2 additions & 1 deletion cli/template/extras/src/server/auth-app/with-drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
type DefaultSession,
type NextAuthOptions,
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
Expand Down Expand Up @@ -46,7 +47,7 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: DrizzleAdapter(db, mysqlTable),
adapter: DrizzleAdapter(db, mysqlTable) as Adapter,
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down
3 changes: 2 additions & 1 deletion cli/template/extras/src/server/auth-pages/with-drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
type DefaultSession,
type NextAuthOptions,
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
Expand Down Expand Up @@ -47,7 +48,7 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: DrizzleAdapter(db, mysqlTable),
adapter: DrizzleAdapter(db, mysqlTable) as Adapter,
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down
2 changes: 1 addition & 1 deletion www/src/pages/og.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const get: APIRoute = async (request) => {
{ name: "Bona Nova", data: bonaNova[400], weight: 400 },
{ name: "Bona Nova", data: bonaNova[700], weight: 700 },
],
debug: import.meta.env.DEBUG_OG === "true" ?? false,
debug: import.meta.env.DEBUG_OG === "true",
},
);

Expand Down

1 comment on commit 06ec5b3

@vercel
Copy link

@vercel vercel bot commented on 06ec5b3 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.