修复工单系统缺少 assigneeId 字段错误
This commit is contained in:
@@ -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' });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user