Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix: make it run again
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Dec 4, 2023
1 parent 7c34a91 commit 716c816
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
16 changes: 10 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0-development",
"description": "The nRF Asset Tracker Web Application is a reference single-page application (SPA) developed using create-react-app in TypeScript.",
"scripts": {
"start": "PUBLIC_URL=/ react-scripts --max_old_space_size=4096 start",
"start": "PUBLIC_URL=/ react-scripts --openssl-legacy-provider --max_old_space_size=4096 start",
"build": "react-scripts --openssl-legacy-provider --max_old_space_size=4096 build",
"test": "npx tsx --test ./src/**/*.spec.ts",
"eject": "react-scripts eject",
Expand Down
2 changes: 1 addition & 1 deletion src/azure/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const boot = ({
userAgentApplication
.acquireTokenSilent(tokenRequest)
.then(resolve)
.catch((error: Record<string, string>) => {
.catch(async (error: Record<string, string>) => {
//Acquire token silent failure, and send an interactive request
if (
(error.errorMessage?.includes('interaction_required') ?? false) ||
Expand Down
2 changes: 1 addition & 1 deletion src/azure/CatsMap/Loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const CatMapLoader = ({ apiClient }: { apiClient: ApiClient }) => {
.queryHistoricalDeviceData(
'SELECT c.deviceId, MAX(c.timestamp) AS max_timestamp FROM c WHERE c.deviceUpdate.properties.reported.gnss != null GROUP BY c.deviceId',
)
.then((res) => {
.then(async (res) => {
if (isRight(res)) {
const q = `SELECT c.deviceId, c.deviceUpdate.properties.reported.gnss.v FROM c WHERE c.deviceId IN (${(
res.right.result as { deviceId: string }[]
Expand Down

0 comments on commit 716c816

Please sign in to comment.