Compare commits

..

No commits in common. "FB_disable_copy_task_control" and "main" have entirely different histories.

2 changed files with 8 additions and 2 deletions

7
.env copy Normal file
View File

@ -0,0 +1,7 @@
DB_CONN=postgres://btr_db_user:StrongPassword123@localhost:5432/btr_db
OBS_API_URL=https://script.google.com/macros/s/AKfycbwilIPLrUQR0hSFseTRQPyVQon4rO-TmXJ0bceovj9xwhC5GM3CelOtVnFAdlxFOqaQvQ/exec
DEPS_API_URL=https://script.google.com/macros/s/AKfycbyiRLAPyszxpYGCrwDreAJt3jxO4eXsNw31dylyMR_OBRr27FFhhYXl_1Uz_NanRUE6/exec
BITRIX_TASK_API_URL=https://thebest.bitrix24.ru/rest/334/748roorgdjcdji3f/
LOAD_BALANCER_API_URL=https://45.10.40.213.nip.io/balancer/api/balancer/send
LOAD_BALANCER_PRIVATE_KEY=89bab1c15544e7bb667b773df786e65f9aed0bf173a84e66e2a88aec3f0014d89a289807c34f71c876b79f67997c9ac281ffd19d00fe8582ebcda97660bddaa3
LOAD_BALANCER_PUBLIC_KEY=68929830b9a07e7c6fa1d4bdfbcafe798a50de4da2969e743fee690dfaec3fb4

View File

@ -120,8 +120,7 @@ func processNewTaskEvent(ctx context.Context, event *BitrixEvent, mandatoryAudit
func isTaskControlNeeded(taskName string) bool {
codeSubstrEnd := strings.Index(taskName, "#")
isCopy := strings.Index(taskName, "Копия ") == 0
return codeSubstrEnd != -1 && !isCopy
return codeSubstrEnd != -1
}
func isTaskControl(taskName string) bool {