Browse Source

fix: proper error if provided url is not shared base

Re #3927

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4705/head
mertmit 2 years ago
parent
commit
1a31eb991b
  1. 7
      packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

7
packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

@ -190,6 +190,13 @@ export default async (
const duration = Date.now() - start;
rtc.fetchAt.count++;
rtc.fetchAt.time += duration;
if (!ft.baseId) {
throw {
message:
'Invalid Shared Base ID :: Ensure www.airtable.com/<SharedBaseID> is accessible. Refer https://bit.ly/3x0OdXI for details',
};
}
const file = ft.schema;
baseId = ft.baseId;

Loading…
Cancel
Save