修复工单系统缺少 assigneeId 字段错误

This commit is contained in:
zhang1106
2025-12-26 14:59:50 +08:00
parent 41b998a216
commit 53f372fcde
2 changed files with 10 additions and 2 deletions
-2
View File
@@ -157,8 +157,6 @@ const initDefaultFaultCategories = async () => {
};
const initAssociations = () => {
Ticket.belongsTo(User, { foreignKey: 'assigneeId', as: 'assignee' });
Ticket.hasMany(TicketOperationRecord, { foreignKey: 'ticketId', as: 'operationRecords' });
TicketOperationRecord.belongsTo(Ticket, { foreignKey: 'ticketId' });
};