Skip to content

Commit 99b6550

Browse files
committed
insights: fix error when first time running locally
1 parent d93da6a commit 99b6550

File tree

1 file changed

+1
-1
lines changed
  • packages/insights/src/routes/api/v1/[publicApiKey]/post

1 file changed

+1
-1
lines changed

packages/insights/src/routes/api/v1/[publicApiKey]/post/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export const onPost: RequestHandler = async ({ exit, json, request, params }) =>
1919
const db = getDB();
2020
let previousSymbol = payload.previousSymbol;
2121
const { publicApiKey, manifestHash } = payload;
22-
await dbGetManifestInfo(db, publicApiKey, manifestHash);
2322
if (publicApiKey && publicApiKey.length > 4) {
2423
await getAppInfo(db, publicApiKey, { autoCreate: true });
24+
await dbGetManifestInfo(db, publicApiKey, manifestHash);
2525
for (const event of payload.symbols) {
2626
const symbolHash = cleanupSymbolName(event.symbol);
2727
if (symbolHash) {

0 commit comments

Comments
 (0)