π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
chore: lint
Ramesh Mane4680ad72d263
diff --git a/packages/nc-gui/composables/useExtensionHelper.ts b/packages/nc-gui/composables/useExtensionHelper.tsindex bd3540ea35..4e3e25bb8c 100644--- a/packages/nc-gui/composables/useExtensionHelper.ts+++ b/packages/nc-gui/composables/useExtensionHelper.ts@@ -89,7 +89,7 @@ const [useProvideExtensionHelper, useExtensionHelper] = useInjectionState()if (pageInfo?.isLastPage) {- await eachPage(records, () => { })+ await eachPage(records, () => {})await done()} else {page++@@ -118,11 +118,16 @@ const [useProvideExtensionHelper, useExtensionHelper] = useInjectionState(for (const chunk of chunks) {inserted += chunk.length- await $api.internal.postOperation(activeWorkspaceId.value!, baseId.value!, {- operation: 'dataInsert',- tableId,- ...(params.autoInsertOption ? { typecast: 'true' } : {}),- }, chunk)+ await $api.internal.postOperation(+ activeWorkspaceId.value!,+ baseId.value!,+ {+ operation: 'dataInsert',+ tableId,+ ...(params.autoInsertOption ? { typecast: 'true' } : {}),+ },+ chunk,+ )}return {@@ -144,12 +149,15 @@ const [useProvideExtensionHelper, useExtensionHelper] = useInjectionState(for (const chunk of chunks) {updated += chunk.length- await $api.internal.postOperation(activeWorkspaceId.value!, baseId.value!, {- operation: 'dataUpdate',- tableId- }, chunk)-- await $api.dbDataTableRow.update(tableId, chunk)+ await $api.internal.postOperation(+ activeWorkspaceId.value!,+ baseId.value!,+ {+ operation: 'dataUpdate',+ tableId,+ },+ chunk,+ )}return {@@ -177,22 +185,32 @@ const [useProvideExtensionHelper, useExtensionHelper] = useInjectionState(if (insert.length) {insertCounter += insert.lengthwhile (insert.length) {- await $api.internal.postOperation(activeWorkspaceId.value!, baseId.value!, {- operation: 'dataInsert',- tableId,- ...(params.autoInsertOption ? { typecast: 'true' } : {}),- }, insert.splice(0, chunkSize))+ await $api.internal.postOperation(+ activeWorkspaceId.value!,+ baseId.value!,+ {+ operation: 'dataInsert',+ tableId,+ ...(params.autoInsertOption ? { typecast: 'true' } : {}),+ },+ insert.splice(0, chunkSize),+ )}}if (update.length) {updateCounter += update.lengthwhile (update.length) {- await $api.internal.postOperation(activeWorkspaceId.value!, baseId.value!, {- operation: 'dataUpdate',- tableId,- ...(params.autoInsertOption ? { typecast: 'true' } : {}),- }, update.splice(0, chunkSize))+ await $api.internal.postOperation(+ activeWorkspaceId.value!,+ baseId.value!,+ {+ operation: 'dataUpdate',+ tableId,+ ...(params.autoInsertOption ? { typecast: 'true' } : {}),+ },+ update.splice(0, chunkSize),+ )}}