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

@ -191,6 +191,13 @@ export default async (
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;
base = new Airtable({ apiKey: sDB.apiKey }).base(baseId);

Loading…
Cancel
Save