mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 10:28:22 +00:00
misc: add fix for v2 to app connection
This commit is contained in:
@@ -386,7 +386,8 @@ export const appConnectionServiceFactory = ({
|
|||||||
|
|
||||||
if (gatewayId) {
|
if (gatewayId) {
|
||||||
const [gateway] = await gatewayDAL.find({ id: gatewayId, orgId: actor.orgId });
|
const [gateway] = await gatewayDAL.find({ id: gatewayId, orgId: actor.orgId });
|
||||||
if (!gateway) {
|
const [gatewayV2] = await gatewayV2DAL.find({ id: gatewayId, orgId: actor.orgId });
|
||||||
|
if (!gateway && !gatewayV2) {
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
message: `Gateway with ID ${gatewayId} not found for org`
|
message: `Gateway with ID ${gatewayId} not found for org`
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user