refactor: simplify names of colums

This commit is contained in:
Mauricio Siu
2024-09-01 00:39:56 -06:00
parent ed46fd3cef
commit 73efe0d0ed
12 changed files with 3529 additions and 62 deletions

View File

@@ -50,7 +50,7 @@ export default async function handler(
.set({
githubInstallationId: installation_id,
})
.where(eq(githubProvider.githubProviderId, value as string))
.where(eq(githubProvider.githubId, value as string))
.returning();
}

View File

@@ -37,7 +37,7 @@ export default async function handler(
return res.status(400).json({ error: "Missing or invalid code" });
}
const expiresAt = Math.floor(Date.now() / 1000) + result.expires_in;
const updatedGiltab = await updateGitlabProvider(gitlab.gitlabProviderId, {
const updatedGiltab = await updateGitlabProvider(gitlab.gitlabId, {
accessToken: result.access_token,
refreshToken: result.refresh_token,
expiresAt,