Skip to content

Commit

Permalink
fix: now works
Browse files Browse the repository at this point in the history
  • Loading branch information
osher-sade committed Jul 12, 2020
1 parent c6c37fb commit 10c179c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins/snapshot/snapshot-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class SnapshotListener implements GraphQLRequestListener<PolarisGraphQLCo
snapshotMetadata.setDataVersion(context.returnedExtensions.globalDataVersion);
snapshotMetadata.setTotalCount(context.snapshotContext?.totalCount!);
snapshotMetadata.setTotalPagesCount(pageCount);
await snapshotMetadataRepository.save({} as any , snapshotMetadata);
await snapshotMetadataRepository.save({} as any, snapshotMetadata);
this.handleSnapshotOperation(
context,
firstRequest,
Expand Down
5 changes: 3 additions & 2 deletions src/server/polaris-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { AbstractPolarisLogger } from '@enigmatis/polaris-logs';
import { makeExecutablePolarisSchema } from '@enigmatis/polaris-schema';
import {
getConnectionForReality,
PolarisConnectionManager, SnapshotMetadata,
PolarisConnectionManager,
SnapshotMetadata,
SnapshotPage,
} from '@enigmatis/polaris-typeorm';
import { ApolloServer, ApolloServerExpressConfig } from 'apollo-server-express';
Expand Down Expand Up @@ -81,7 +82,7 @@ export class PolarisServer {
app.use(this.apolloServer.getMiddleware({ path: `/${endpoint}` }));
app.use(
'/graphql-playground-react',
express.static(path.join(__dirname, '../../static/playground')),
express.static(path.join(__dirname, '../../../static/playground')),
);
app.use('/$', (req: express.Request, res: express.Response) => {
res.redirect(endpoint);
Expand Down

0 comments on commit 10c179c

Please sign in to comment.