mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat: Migrate packages from lodash to lodash-es (no-changelog) (#5538)
This commit is contained in:
@@ -2,7 +2,7 @@ import type { OptionsWithUri } from 'request';
|
||||
|
||||
import type { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
|
||||
import _ from 'lodash';
|
||||
import map from 'lodash.map';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function mandrillApiRequest(
|
||||
@@ -39,7 +39,7 @@ export function getToEmailArray(toEmail: string): any {
|
||||
let toEmailArray;
|
||||
if (toEmail.split(',').length > 0) {
|
||||
const array = toEmail.split(',');
|
||||
toEmailArray = _.map(array, (email) => {
|
||||
toEmailArray = map(array, (email) => {
|
||||
return {
|
||||
email,
|
||||
type: 'to',
|
||||
|
||||
Reference in New Issue
Block a user