feat: add CSAT sending functionality and improve error handling in templates

feat: automation action to send CSAT.
- minor refactors.
This commit is contained in:
Abhinav Raut
2025-02-02 21:03:09 +05:30
parent d7ac76824f
commit d3c2cc2527
27 changed files with 415 additions and 400 deletions
+2 -2
View File
@@ -76,8 +76,8 @@ func RandomNumericString(n int) (string, error) {
}
// GetPathFromURL extracts the path from a URL.
func GetPathFromURL(rawURL string) (string, error) {
parsedURL, err := url.Parse(rawURL)
func GetPathFromURL(u string) (string, error) {
parsedURL, err := url.Parse(u)
if err != nil {
return "", err
}