feat: add workbench AI integration
This commit is contained in:
@@ -135,6 +135,9 @@ func (s *Store) WorkbenchModules(ctx context.Context, userID int64) ([]Workbench
|
||||
err := s.db.SelectContext(ctx, &modules, `SELECT code,name,IFNULL(icon_file_id,'') AS icon_file_id,route,sort_order,0 AS unread_count,enabled,permission
|
||||
FROM im_workbench_apps WHERE tenant_id=? AND enabled=1 ORDER BY sort_order ASC,id ASC`, s.tenant())
|
||||
if err != nil {
|
||||
if isMissingTable(err) {
|
||||
return []WorkbenchModule{}, 1, nil
|
||||
}
|
||||
return nil, 0, err
|
||||
}
|
||||
for i := range modules {
|
||||
@@ -436,6 +439,9 @@ func (s *Store) Meeting(ctx context.Context, userID int64, meetingID string) (*M
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
return nil, ErrNotFound
|
||||
}
|
||||
if isMissingTable(err) {
|
||||
return nil, ErrNotFound
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
meeting.Participants, _ = s.meetingParticipants(ctx, meeting.MeetingID)
|
||||
|
||||
Reference in New Issue
Block a user