mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Lint for no unneeded backticks (#5057) (no-changelog)
* ✨ Create rule `no-unneeded-backticks` * 👕 Enable rule * ⚡ Run rule on `cli` * ⚡ Run rule on `core` * ⚡ Run rule on `workflow` * ⚡ Rule rule on `design-system` * ⚡ Run rule on `node-dev` * ⚡ Run rule on `editor-ui` * ⚡ Run rule on `nodes-base`
This commit is contained in:
@@ -232,7 +232,7 @@ export class Iterable implements INodeType {
|
||||
|
||||
if (by === 'email') {
|
||||
const email = this.getNodeParameter('email', i) as string;
|
||||
endpoint = `/users/getByEmail`;
|
||||
endpoint = '/users/getByEmail';
|
||||
qs.email = email;
|
||||
} else {
|
||||
const userId = this.getNodeParameter('userId', i) as string;
|
||||
@@ -244,7 +244,7 @@ export class Iterable implements INodeType {
|
||||
if (!this.continueOnFail()) {
|
||||
if (Object.keys(responseData).length === 0) {
|
||||
throw new NodeApiError(this.getNode(), responseData, {
|
||||
message: `User not found`,
|
||||
message: 'User not found',
|
||||
httpCode: '404',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user