Skip to content

Commit e433162

Browse files
authored
Merge pull request #432 from TaloDev/develop
Release 0.64.1
2 parents 4b3741d + 4511756 commit e433162

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"lint-staged": {
7979
"*.{ts,js,tsx,jsx}": "eslint --fix"
8080
},
81-
"version": "0.64.0",
81+
"version": "0.64.1",
8282
"engines": {
8383
"node": "22.x"
8484
},

ship-it.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
VERSION=$(jq -r '.version' package.json)
4+
REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner)
5+
6+
gh pr create \
7+
--repo "$REPO" \
8+
--base main \
9+
--head develop \
10+
--title "Release $VERSION" \
11+
--label "release" \
12+
--body ""

src/api/useStats.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ export default function useStats(
1515
const fetcher = async ([url]: [string]) => {
1616
const qs = new URLSearchParams({
1717
withMetrics: (metricsStartDate || metricsEndDate) ? '1' : '0',
18-
metricsStartDate: convertDateToUTC(metricsStartDate),
19-
metricsEndDate: convertDateToUTC(metricsEndDate)
18+
// the backend prefers the dashboard to send yyyy-mm-dd dates for metrics
19+
// so that the start date and end date can be set consistently
20+
metricsStartDate: convertDateToUTC(metricsStartDate).split('T')[0],
21+
metricsEndDate: convertDateToUTC(metricsEndDate).split('T')[0]
2022
}).toString()
2123

2224
const res = await makeValidatedGetRequest(`${url}?${qs}`, z.object({

0 commit comments

Comments
 (0)