mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: simplify names of colums
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user