Skip to content

Commit

Permalink
add mock route and websocket payload
Browse files Browse the repository at this point in the history
  • Loading branch information
gatzjames authored and filfreire committed Oct 17, 2024
1 parent 86ccd88 commit fb76757
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/insomnia/src/sync/git/ne-db-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fb76757

Please sign in to comment.