Skip to content

Commit

Permalink
Merge pull request #6986 from QwikDev/fix-insights-build
Browse files Browse the repository at this point in the history
fix(insights): fix build
  • Loading branch information
wmertens authored Oct 17, 2024
2 parents cc253b5 + 7e5b7a3 commit 94ee2b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ export const onPost: RequestHandler = async ({ exit, json, request, params }) =>
}
};

function cleanupSymbolName(symbolName?: string | null) {
if (!symbolName) return;
function cleanupSymbolName(symbolName?: string | null): string | null {
if (!symbolName) return null;
const shortName = symbolName.substring(symbolName.lastIndexOf('_') + 1 || 0);
if (shortName == 'hW') return;
if (shortName == 'hW') return null;
return shortName;
}
function migrate1(payloadJson: any) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const useErrors = routeLoader$(async ({ params }) => {
.select()
.from(errorTable)
.where(eq(errorTable.publicApiKey, params.publicApiKey))
.limit(1000)
.orderBy(sql`${errorTable.timestamp} DESC`)
.limit(1000)
.all();
Expand Down

0 comments on commit 94ee2b4

Please sign in to comment.