rename list_custom_instance_pg_databases

This commit is contained in:
Diego Imbert
2025-12-01 10:58:51 +01:00
parent 4003cf0a0e
commit 5439cd12b3
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -847,10 +847,10 @@ paths:
schema:
type: boolean
/settings/get_custom_instance_pg_databases:
/settings/list_custom_instance_pg_databases:
post:
summary: Returns the set-up statuses of custom instance pg databases
operationId: getCustomInstanceDbs
operationId: listCustomInstanceDbs
tags:
- setting
responses:
+3 -3
View File
@@ -70,8 +70,8 @@ pub fn global_service() -> Router {
post(acknowledge_critical_alert),
)
.route(
"/get_custom_instance_pg_databases",
post(get_custom_instance_pg_databases),
"/list_custom_instance_pg_databases",
post(list_custom_instance_pg_databases),
)
.route(
"/setup_custom_instance_pg_database/:name",
@@ -606,7 +606,7 @@ struct CustomInstanceDbLogs {
grant_permissions: String,
}
async fn get_custom_instance_pg_databases(
async fn list_custom_instance_pg_databases(
_authed: ApiAuthed,
Extension(db): Extension<DB>,
) -> JsonResult<HashMap<String, CustomInstanceDb>> {
@@ -103,7 +103,7 @@
})
}
const customInstanceDbs = resource([], SettingService.getCustomInstanceDbs)
const customInstanceDbs = resource([], SettingService.listCustomInstanceDbs)
async function onSave() {
try {
@@ -125,7 +125,7 @@
)
)
const customInstanceDbs = resource([], SettingService.getCustomInstanceDbs)
const customInstanceDbs = resource([], SettingService.listCustomInstanceDbs)
async function onSave() {
try {