Skip to content

Commit 94ee2b4

Browse files
authored
Merge pull request #6986 from QwikDev/fix-insights-build
fix(insights): fix build
2 parents cc253b5 + 7e5b7a3 commit 94ee2b4

File tree

2 files changed

+3
-4
lines changed
  • packages/insights/src/routes

2 files changed

+3
-4
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export const onPost: RequestHandler = async ({ exit, json, request, params }) =>
4747
}
4848
};
4949

50-
function cleanupSymbolName(symbolName?: string | null) {
51-
if (!symbolName) return;
50+
function cleanupSymbolName(symbolName?: string | null): string | null {
51+
if (!symbolName) return null;
5252
const shortName = symbolName.substring(symbolName.lastIndexOf('_') + 1 || 0);
53-
if (shortName == 'hW') return;
53+
if (shortName == 'hW') return null;
5454
return shortName;
5555
}
5656
function migrate1(payloadJson: any) {

packages/insights/src/routes/app/[publicApiKey]/errors/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const useErrors = routeLoader$(async ({ params }) => {
1111
.select()
1212
.from(errorTable)
1313
.where(eq(errorTable.publicApiKey, params.publicApiKey))
14-
.limit(1000)
1514
.orderBy(sql`${errorTable.timestamp} DESC`)
1615
.limit(1000)
1716
.all();

0 commit comments

Comments
 (0)