Skip to content

Commit

Permalink
🔀 Add biome zed settings
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Sep 26, 2024
1 parent e3aa613 commit f167015
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
},
"formatter": {
"language_server": {
"name": "biome"
}
}
}
4 changes: 2 additions & 2 deletions packages/lib/src/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { encrypt } from "./api/encryption/encrypt";
import { isDefined } from "./utils";

export const getAuthenticatedGoogleClient = async (
credentialsId: string
credentialsId: string,
): Promise<OAuth2Client | undefined> => {
const credentials = (await prisma.credentials.findFirst({
where: { id: credentialsId },
Expand All @@ -18,7 +18,7 @@ export const getAuthenticatedGoogleClient = async (
const oauth2Client = new OAuth2Client(
env.GOOGLE_SHEETS_CLIENT_ID,
env.GOOGLE_SHEETS_CLIENT_SECRET,
`${env.NEXTAUTH_URL}/api/credentials/google-sheets/callback`
`${env.NEXTAUTH_URL}/api/credentials/google-sheets/callback`,
);
oauth2Client.setCredentials(data);
oauth2Client.on("tokens", updateTokens(credentialsId, data));
Expand Down

0 comments on commit f167015

Please sign in to comment.