enhancement(lint): Fix lint errors for src/modules/highseas.ts

Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2025-01-07 07:27:33 +00:00 committed by GitHub
parent d0004b7c73
commit 0096a75a2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -218,13 +218,16 @@ export function diffAirtable(
const msgs: string[] = [];
for (const key in newD.fields) {
// this is such a bad way to check so if its an object or array its getting skipped
if(typeof newD.fields[key] === "object" || Array.isArray(newD.fields[key])){
if (
typeof newD.fields[key] === "object" ||
Array.isArray(newD.fields[key])
) {
continue;
}
if(typeof old.fields[key] == 'number') {
if (typeof old.fields[key] == "number") {
old.fields[key] = old.fields[key].toFixed(2);
}
if(typeof newD.fields[key] == 'number') {
if (typeof newD.fields[key] == "number") {
newD.fields[key] = newD.fields[key].toFixed(2);
}
if (old?.fields[key] !== newD.fields[key]) {