Skip to content

Commit ee75e29

Browse files
committed
Fix incorrect URL being returned by the list endpoint
1 parent 0f64b66 commit ee75e29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/routes/list_database.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ pub async fn route_list_database(
3131
if managed_sts.is_err() {
3232
return Err(Status::InternalServerError);
3333
}
34-
3534
for sts in managed_sts.unwrap().items {
3635
let database_name = sts.metadata.name.clone();
3736

@@ -64,7 +63,7 @@ pub async fn route_list_database(
6463
}
6564
managed_dbs.push(DatabaseInstanceModel {
6665
planetscale_api_url: format!(
67-
"https://{}.{}",
66+
"https://moonscale-instance-{}.{}",
6867
db_instance_name.unwrap(),
6968
context.config.ingress_domain
7069
),

0 commit comments

Comments
 (0)