mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-10 08:25:22 +02:00
feat(bitbucket): Deprecate App password and replace it with API token
This commit is contained in:
@@ -68,10 +68,17 @@ export const updateBitbucket = async (
|
||||
input: typeof apiUpdateBitbucket._type,
|
||||
) => {
|
||||
return await db.transaction(async (tx) => {
|
||||
// Explicitly omit credentials from updates for safety/back-compat
|
||||
const {
|
||||
apiToken: _ignoredApiToken,
|
||||
appPassword: _ignoredAppPassword,
|
||||
...safeInput
|
||||
} = input as any;
|
||||
|
||||
const result = await tx
|
||||
.update(bitbucket)
|
||||
.set({
|
||||
...input,
|
||||
...safeInput,
|
||||
})
|
||||
.where(eq(bitbucket.bitbucketId, bitbucketId))
|
||||
.returning();
|
||||
|
||||
Reference in New Issue
Block a user