mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
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:
parent
d0004b7c73
commit
0096a75a2f
1 changed files with 6 additions and 3 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue