Skip to content

Commit ffb91a9

Browse files
authored
Merge branch 'main' into bugfix/geo-map-bugs
2 parents b2532cc + c0ef17f commit ffb91a9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

frontend/.husky/pre-commit

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#run husky pre-commit hook only if frontend changed
2-
if git diff --name-only --cached | grep 'frontend/';
2+
if git diff --diff-filter=d --name-only --cached | grep 'frontend/';
33
then
44
echo "FRONTEND FOLDER CHANGED --> starting husky..."
5-
cd frontend && pnpm lint:fix && pnpm tsc-check
6-
git add -u
5+
cd frontend && \
6+
pnpm exec eslint --fix $(git diff --diff-filter=d --name-only --cached --relative) && \
7+
pnpm tsc-check
8+
git add -u $(git diff --diff-filter=d --name-only --cached --relative)
79
fi

frontend/server/api/project/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export default defineEventHandler(async (event): Promise<Pagination<Project> | E
5858

5959
type ProjectCount = {'count(id)': number};
6060
const projectCountResult = await fetchFromTinybird<ProjectCount[]>('/v0/pipes/projects_list.json', {
61+
collectionSlug,
62+
isLf,
6163
count: true,
6264
});
6365

0 commit comments

Comments
 (0)