Skip to content

Commit c48b4e5

Browse files
committed
Filter anonymous workers from list query
Workers with name IS NULL are function workers belonging to projects and should not appear in the worker list.
1 parent a4026bd commit c48b4e5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "openworkers-cli"
3-
version = "0.2.13"
3+
version = "0.2.14"
44
edition = "2024"
55
license = "MIT"
66
description = "CLI for OpenWorkers - Self-hosted Cloudflare Workers runtime"

src/backend/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl Backend for DbBackend {
111111
e.id as env_id, e.name as env_name
112112
FROM workers w
113113
LEFT JOIN environments e ON e.id = w.environment_id
114-
WHERE w.user_id = $1
114+
WHERE w.user_id = $1 AND w.name IS NOT NULL
115115
ORDER BY w.name
116116
"#,
117117
)

0 commit comments

Comments
 (0)