Skip to content

Commit 1134ed6

Browse files
committed
fix: path sep
1 parent 46b514c commit 1134ed6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/api/go/internal/modules/repo/artifact.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,10 @@ func (r *artifactRepo) GlobArtifacts(ctx context.Context, diskID uuid.UUID, patt
176176
// But since we're doing full replacement, we don't need to escape
177177

178178
// Match against combined path/filename
179+
// path already ends with '/', so no extra separator needed
179180
query := r.db.WithContext(ctx).
180181
Where("disk_id = ?", diskID).
181-
Where("(path || '/' || filename) LIKE ?", sqlPattern).
182+
Where("(path || filename) LIKE ?", sqlPattern).
182183
Limit(limit)
183184

184185
err := query.Find(&artifacts).Error

0 commit comments

Comments
 (0)