mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
feat: Optimize SMS notification module.
This commit is contained in:
@@ -10,3 +10,8 @@ export const transformErrors = (errors) => {
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export const getSMSUnits = (message, threshold = 140) => {
|
||||
return Math.ceil(message.length / threshold);
|
||||
};
|
||||
Reference in New Issue
Block a user