diff --git a/src/info.json b/src/info.json index bf2478b..6852dcd 100644 --- a/src/info.json +++ b/src/info.json @@ -1 +1 @@ -{"version":"6.3.3","branch":"master","timestamp":1695488783300} \ No newline at end of file +{"version":"6.3.4","branch":"master","timestamp":1695491473022} \ No newline at end of file diff --git a/src/toolDb/upsertDbRank.ts b/src/toolDb/upsertDbRank.ts index 26d5aab..9b4e241 100644 --- a/src/toolDb/upsertDbRank.ts +++ b/src/toolDb/upsertDbRank.ts @@ -1,3 +1,5 @@ +import _ from "lodash"; + import { CombinedRankInfo } from "../background/onLabel/InEventGetCombinedRankInfo"; import reduxAction from "../redux/reduxAction"; import store from "../redux/stores/rendererStore"; @@ -9,8 +11,9 @@ import { import getLocalSetting from "../utils/getLocalSetting"; import { getData, putData } from "./worker-wrapper"; -export default async function upsertDbRank(rank: Partial) { - console.log("> Upsert rank", rank); +export default async function upsertDbRank(arg: Partial) { + const rank = _(arg).omitBy(_.isUndefined).omitBy(_.isNull).value(); + console.log("> Upsert rank", arg, rank); const uuid = getLocalSetting("playerId") || "default"; const { dispatch } = store;