Skip to content

Comments

Adds new api#2

Open
Tozarin wants to merge 1 commit intomainfrom
api-change
Open

Adds new api#2
Tozarin wants to merge 1 commit intomainfrom
api-change

Conversation

@Tozarin
Copy link
Collaborator

@Tozarin Tozarin commented Nov 20, 2025

No description provided.

Signed-off-by: Старцев Матвей <tozarin@yandex.ru>
Comment on lines +328 to +336
if (apiVersion === 'v1' && !sDB.apiKey) {
throw {
message: 'API Key is required for Airtable API v1',
};
}
if (apiVersion === 'v2' && !sDB.personalAccessToken) {
throw {
message: 'Personal Access Token is required for Airtable API v2',
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут лучше использовать switch по apiVersion

Comment on lines +105 to +112
if (apiVersion === 'v1' && !details.apiKey) {
NcError.badRequest('API Key is required for Airtable API v1');
}

if (apiVersion === 'v2' && !details.personalAccessToken) {
NcError.badRequest(
'Personal Access Token is required for Airtable API v2',
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужен switch по apiVersion

Comment on lines +39 to +46
if (apiVersion === 'v1' && !details.apiKey) {
NcError.badRequest('API Key is required for Airtable API v1');
}

if (apiVersion === 'v2' && !details.personalAccessToken) {
NcError.badRequest(
'Personal Access Token is required for Airtable API v2',
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Надо использовать switch по apiVersion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant