Skip to content

Commit

Permalink
fix ts issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gatzjames committed Feb 6, 2024
1 parent cec7200 commit 297d39e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/insomnia/src/ui/routes/remote-collections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { canSync } from '../../models';
import { ApiSpec } from '../../models/api-spec';
import { Environment } from '../../models/environment';
import { GrpcRequest } from '../../models/grpc-request';
import { MockRoute } from '../../models/mock-route';
import { MockServer } from '../../models/mock-server';
import { Request } from '../../models/request';
import { RequestGroup } from '../../models/request-group';
import { UnitTest } from '../../models/unit-test';
Expand All @@ -33,6 +35,8 @@ async function getSyncItems({
| RequestGroup
| UnitTestSuite
| UnitTest
| MockServer
| MockRoute
)[] = [];
const activeWorkspace = await models.workspace.getById(workspaceId);
invariant(activeWorkspace, 'Workspace could not be found');
Expand All @@ -59,7 +63,7 @@ async function getSyncItems({
const mockServer = await models.mockServer.getByParentId(workspaceId);
if (mockServer) {
syncItemsList.push(mockServer);
const mockRoutes = await database.find(models.mockRoute.type, { parentId: mockServer._id });
const mockRoutes = await database.find<MockRoute>(models.mockRoute.type, { parentId: mockServer._id });
mockRoutes.map(m => syncItemsList.push(m));
}

Expand Down

0 comments on commit 297d39e

Please sign in to comment.