Skip to content

Commit 4d28952

Browse files
authored
Dashboard snapshots fix (#552)
1 parent 85e2c88 commit 4d28952

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pgml-dashboard/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pgml-dashboard/src/models.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,7 @@ impl Snapshot {
549549
analysis,
550550
created_at,
551551
updated_at
552-
FROM pgml.snapshots
553-
"
552+
FROM pgml.snapshots JOIN pg_class ON oid::regclass::text = relation_name"
554553
)
555554
.fetch_all(pool)
556555
.await?)
@@ -568,7 +567,7 @@ impl Snapshot {
568567
analysis,
569568
created_at,
570569
updated_at
571-
FROM pgml.snapshots
570+
FROM pgml.snapshots JOIN pg_class ON oid::regclass::text = relation_name
572571
WHERE id = $1",
573572
id,
574573
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy