Skip to content

Commit

Permalink
Merge pull request #62 from oslabs-beta/master
Browse files Browse the repository at this point in the history
Fixed file path problem
  • Loading branch information
johnwongfc authored Aug 19, 2021
2 parents 9afda92 + 0b378ce commit ccd35c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ObsidianWrapper/ObsidianWrapper.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'https://dev.jspm.io/react';
import Cache from '../src/Browser/CacheClassBrowser.js/index.js';
import { insertTypenames } from '../src/Browser/insertTypenames.js/index.js';
import Cache from '../src/Browser/CacheClassBrowser.js';
import { insertTypenames } from '../src/Browser/insertTypenames.js';

const cacheContext = React.createContext();

Expand Down
2 changes: 1 addition & 1 deletion clientMod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import {
ObsidianWrapper,
useObsidian,
} from './ObsidianWrapper/ObsidianWrapper.jsx';
import BrowserCache from './src/Browser/CacheClassBrowser.js/index.js';
import BrowserCache from './src/Browser/CacheClassBrowser.js/';

export { BrowserCache, ObsidianWrapper, useObsidian };
5 changes: 4 additions & 1 deletion src/Obsidian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function ObsidianRouter<T>({
maxQueryDepth = 0,
useQueryCache = true,
useRebuildCache = true,
customIdentifier = ["id", "__typename"]
customIdentifier = ["id", "__typename"],
}: ObsidianRouterOptions<T>): Promise<T> {
redisPortExport = redisPort;
const router = new Router();
Expand Down Expand Up @@ -216,11 +216,14 @@ export async function ObsidianRouter<T>({

await cachePrimaryFields(normalized, body.query, map)



}
var t1 = performance.now();
console.log(
'%c Obsidian received new data and took ' + (t1 - t0) + ' milliseconds', 'background: #222; color: #FFFF00'
);

return;
} catch (error) {
response.status = 200;
Expand Down

0 comments on commit ccd35c4

Please sign in to comment.