From fb767570521cee8ce9ce8ea9f6357e94450a03c3 Mon Sep 17 00:00:00 2001 From: gatzjames Date: Thu, 17 Oct 2024 11:43:50 +0200 Subject: [PATCH] add mock route and websocket payload --- packages/insomnia/src/sync/git/ne-db-client.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/insomnia/src/sync/git/ne-db-client.ts b/packages/insomnia/src/sync/git/ne-db-client.ts index f7181a04759..7c2b7e0c4f4 100644 --- a/packages/insomnia/src/sync/git/ne-db-client.ts +++ b/packages/insomnia/src/sync/git/ne-db-client.ts @@ -171,6 +171,14 @@ export class NeDBClient { typeFilter = [models.protoDirectory.type, type]; } + if (type === models.mockRoute.type) { + typeFilter = [models.mockServer.type, type]; + } + + if (type === models.webSocketPayload.type) { + typeFilter = [models.webSocketRequest.type, type]; + } + const children = await db.withDescendants(workspace, null, typeFilter); docs = children.filter(d => d.type === type && !d.isPrivate); } else {