mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-11 21:39:00 +00:00
feat: add CSAT sending functionality and improve error handling in templates
feat: automation action to send CSAT. - minor refactors.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user