Lead Statuses
Here you will find all the information how lead statuses works.
Backend
async applyDefaultLeadStatuses(teamId: string) {
return Promise.all(
defaultStatuses.map(async status => {
return await this.leadStatusRepository.save({
name: status.name,
primaryColor: status.primaryColor,
secondaryColor: LeadSecondaryColorMap[status.primaryColor],
team: { id: teamId },
});
})
);
}Frontend

How is this done?
Permissions
Last updated