Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(results: any) => {
if (results && results.features) {
if (results.features.length === 0) {
addFeatures({
url: dispatchers.url,
features: [
{
attributes: {
name: fullName,
userId: name
}
}
],
authentication: destinationAuthentication
}).then(
addResults => {
if (addResults && addResults.addResults) {
resolve(true);
} else {
reject(