Skip to content

Commit

Permalink
Merge pull request #872 from GlobalFishingWatch/vessel-history/fix-bu…
Browse files Browse the repository at this point in the history
…ild-80ddf62d

Fix VV builds failing since 80ddf62d
  • Loading branch information
j8seangel authored Sep 1, 2021
2 parents 3bcc539 + a530352 commit bd93143
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions applications/vessel-history/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"i18n:parser": "i18next 'src/**/*.{js,jsx,ts,tsx}'"
},
"dependencies": {
"@globalfishingwatch/api-client": "^3.0.0",
"@globalfishingwatch/api-client": "3.1.0",
"@globalfishingwatch/api-types": "5.3.1",
"@globalfishingwatch/data-transforms": "^1.4.1",
"@globalfishingwatch/dataviews-client": "^13.0.0",
Expand Down Expand Up @@ -166,4 +166,4 @@
"!src/types/**/*.*"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const fetchDatasetsByIdsThunk = createAsyncThunk(
datasets = uniqBy([...mockedDatasets.default, ...datasets], 'id')
}
return datasets
} catch (e) {
} catch (e: any) {
return rejectWithValue({ status: e.status || e.code, message: e.message })
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const fetchDataviewsByIdsThunk = createAsyncThunk(
dataviews = uniqBy([...mockedDataviews.default, ...dataviews], 'id')
}
return dataviews
} catch (e) {
} catch (e: any) {
return rejectWithValue({ status: e.status || e.code, message: e.message })
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const createOfflineVesselThunk = createAsyncThunk<
try {
db.vessels.add(vessel, vessel.profileId)
return vessel
} catch (e) {
} catch (e: any) {
return rejectWithValue({ status: e.status || e.code, message: e.message })
}
})
Expand All @@ -43,7 +43,7 @@ export const deleteOfflineVesselThunk = createAsyncThunk<
}
await db.vessels.delete(profileId)
return { ...result }
} catch (e) {
} catch (e: any) {
return rejectWithValue({
status: e.status || e.code,
message: `${profileId} - ${e.message}`,
Expand All @@ -66,7 +66,7 @@ export const fetchOfflineVesselsThunk = createAsyncThunk<
} else {
return await db.vessels.toArray()
}
} catch (e) {
} catch (e: any) {
return rejectWithValue({ status: e.status || e.code, message: e.message })
}
})
Expand All @@ -84,7 +84,7 @@ export const fetchOfflineVesselByIdThunk = createAsyncThunk<
throw new Error('Vessel not found')
}
return result
} catch (e) {
} catch (e: any) {
return rejectWithValue({
status: e.status || e.code,
message: `${profileId} - ${e.message}`,
Expand All @@ -102,7 +102,7 @@ export const updateOfflineVesselThunk = createAsyncThunk<
try {
await db.vessels.put(vessel, vessel.profileId)
return vessel
} catch (e) {
} catch (e: any) {
return rejectWithValue({
status: e.status || e.code,
message: `${vessel.profileId} - ${e.message}`,
Expand Down

0 comments on commit bd93143

Please sign in to comment.