FieldControl/mautic

View on GitHub

Showing 2 of 4 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

subtractPoints (contactId, points, data = { eventname: undefined, eventaction: undefined }) {
return this.client.post(`contacts/${contactId}/points/minus/${points}`, data)
}
Severity: Major
Found in src/resources/contact.js and 1 other location - About 1 hr to fix
src/resources/contact.js on lines 31..33

Similar blocks of code found in 2 locations. Consider refactoring.
Open

addPoints (contactId, points, data = { eventname: undefined, eventaction: undefined }) {
return this.client.post(`contacts/${contactId}/points/plus/${points}`, data)
}
Severity: Major
Found in src/resources/contact.js and 1 other location - About 1 hr to fix
src/resources/contact.js on lines 35..37
Severity
Category
Status
Source
Language