Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: operation on s3 protocol #592

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/http/plugins/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const db = fastifyPlugin(
headers: request.headers,
path: request.url,
method: request.method,
operation: request.operation?.type,
operation: () => request.operation?.type,
})
})

Expand Down Expand Up @@ -111,6 +111,7 @@ export const dbSuperUser = fastifyPlugin<DbSuperUserPluginOptions>(
method: request.method,
headers: request.headers,
disableHostCheck: opts.disableHostCheck,
operation: () => request.operation?.type,
})
})

Expand Down
2 changes: 1 addition & 1 deletion src/internal/database/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface ConnectionOptions {
user: User
superUser: User
disableHostCheck?: boolean
operation?: string
operation?: () => string | undefined
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/internal/database/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface TenantConnectionOptions {
headers?: Record<string, string | undefined | string[]>
method?: string
path?: string
operation?: string
operation?: () => string | undefined
}

export interface User {
Expand Down Expand Up @@ -252,7 +252,7 @@ export class TenantConnection {
headers,
this.options.method || '',
this.options.path || '',
this.options.operation || '',
this.options.operation?.() || '',
]
)
}
Expand Down
Loading