mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
Merge pull request #17333 from supabase/fix/pooler-settings
Fix/pooler settings
This commit is contained in:
1 file changed
+7
-1
@@ -122,6 +122,7 @@ interface ConfigProps {
|
||||
|
||||
export const PgbouncerConfig = ({ projectRef, bouncerInfo, connectionInfo }: ConfigProps) => {
|
||||
const { ui } = useStore()
|
||||
const { project } = useProjectContext()
|
||||
const [updates, setUpdates] = useState({
|
||||
pool_mode: bouncerInfo.pool_mode || 'transaction',
|
||||
default_pool_size: bouncerInfo.default_pool_size || undefined,
|
||||
@@ -140,7 +141,12 @@ export const PgbouncerConfig = ({ projectRef, bouncerInfo, connectionInfo }: Con
|
||||
|
||||
const canUpdateConnectionPoolingConfiguration = useCheckPermissions(
|
||||
PermissionAction.UPDATE,
|
||||
'projects'
|
||||
'projects',
|
||||
{
|
||||
resource: {
|
||||
project_id: project?.id,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
const updateConfig = async (updatedConfig: any) => {
|
||||
|
||||
Reference in new issue
Block a user