🔀 Add biome zed settings
Some checks failed
Create Tag / create-tag (push) Has been cancelled

This commit is contained in:
Baptiste Arnaud 2024-09-26 16:35:10 +02:00
parent e3aa613861
commit f1670150fa
No known key found for this signature in database
2 changed files with 13 additions and 2 deletions

11
.zed/settings.json Normal file
View File

@ -0,0 +1,11 @@
{
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
},
"formatter": {
"language_server": {
"name": "biome"
}
}
}

View File

@ -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 },
@ -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));