Skip to content

Commit 541d965

Browse files
committed
fix: only export non-hidden databases
1 parent ced7813 commit 541d965

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/postgres-new/lib/db/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ export class DbManager {
232232
const { rows: messages } = await metaDb.sql<Database>`
233233
select id, name, created_at as "createdAt", is_hidden as "isHidden"
234234
from databases
235+
where is_hidden = false
235236
order by created_at asc
236237
`
237238
return messages
@@ -243,6 +244,7 @@ export class DbManager {
243244
const { rows: messages } = await metaDb.sql<Result>`
244245
select count(*)
245246
from databases
247+
where is_hidden = false
246248
`
247249
const [{ count }] = messages ?? []
248250
if (!count) {

0 commit comments

Comments
 (0)