fix: add department_id to ReqClazz and ReqClazzRepeat structs
Rust Backend CI / check (push) Failing after 13m19s

Completes the department_id field addition across all Clazz-related
structs and initializers after schema migration added the column.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-03 09:45:57 +08:00
parent fa14a5ca8c
commit 63bd9cd8ff
3 changed files with 16 additions and 0 deletions
+2
View File
@@ -862,6 +862,7 @@ async fn raw_create_clazz_with_repeat(
is_notified: in_kecheng.is_notified.clone(),
completed_at: None,
org_id: in_kecheng.org_id.clone(),
department_id: in_kecheng.department_id.clone(),
};
if to_create_kecheng.org_id.is_none() {
to_create_kecheng.org_id = current_org_id.clone();
@@ -887,6 +888,7 @@ async fn raw_create_clazz_with_repeat(
repeat_status: kecheng_repeat_copy.repeat_status.clone(),
latest_clazz_created_at: kecheng_repeat_copy.latest_clazz_created_at.clone(),
org_id: kecheng_repeat_copy.org_id.clone(),
department_id: kecheng_repeat_copy.department_id.clone(),
})
}
+1
View File
@@ -72,6 +72,7 @@ async fn raw_create_clazz_repeat(
repeat_status: in_kecheng_repeat.repeat_status.clone(),
latest_clazz_created_at: in_kecheng_repeat.latest_clazz_created_at.clone(),
org_id: in_kecheng_repeat.org_id.clone(),
department_id: in_kecheng_repeat.department_id.clone(),
};
let created_kecheng_repeat_result = ClazzRepeat::create(