2248 zapier integration implement typeorm eventsubscribers (#3122)
* Add new queue to twenty-server * Add triggers to zapier * Rename webhook operation * Use find one or fail * Use logger * Fix typescript templating * Add dedicated call webhook job * Update logging * Fix error handling
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import { capitalize } from "../utils/capitalize";
|
||||
import { capitalize } from '../utils/capitalize';
|
||||
|
||||
export const labelling = (str: string): string => {
|
||||
return str
|
||||
.replace(/[A-Z]/g, letter => ` ${letter.toLowerCase()}`)
|
||||
.replace(/[A-Z]/g, (letter) => ` ${letter.toLowerCase()}`)
|
||||
.split(' ')
|
||||
.map((word)=> capitalize(word))
|
||||
.map((word) => capitalize(word))
|
||||
.join(' ');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user