Skip to content

Commit 4c635f7

Browse files
authored
Fixed queues SSE live reloading (#2259)
1 parent 46dad7d commit 4c635f7

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues.stream.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,19 @@ export const loader = createSSELoader({
1616
const environment = await $replica.runtimeEnvironment.findFirst({
1717
where: {
1818
slug: envParam,
19-
type: "DEVELOPMENT",
20-
orgMember: {
21-
userId,
22-
},
19+
OR: [
20+
{
21+
type: {
22+
in: ["PREVIEW", "STAGING", "PRODUCTION"],
23+
},
24+
},
25+
{
26+
type: "DEVELOPMENT",
27+
orgMember: {
28+
userId,
29+
},
30+
},
31+
],
2332
project: {
2433
slug: projectParam,
2534
},

0 commit comments

Comments
 (0)