d4x1 commented on code in PR #8401:
URL: 
https://github.com/apache/incubator-devlake/pull/8401#discussion_r2057141533


##########
backend/plugins/customize/service/service.go:
##########
@@ -262,22 +263,53 @@ func (s *Service) importCSV(file io.ReadCloser, 
rawDataParams string, recordHand
        }
 }
 
+// createOrUpdateAccount creates or updates an account based on the provided 
name.
+// It returns the account ID and an error if any occurred.
+func (s *Service) createOrUpdateAccount(accountName string, rawDataParams 
string) (string, errors.Error) {
+       if accountName == "" {
+               return "", nil // Return empty ID if name is empty, no error 
needed here.
+       }
+       now := time.Now()
+       accountId := fmt.Sprintf("csv:CsvAccount:0:%s", accountName)

Review Comment:
   Is `0` in `csv:CsvAccount:0:%s` correct? I am not sure.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@devlake.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to