Skip to content

Commit

Permalink
MBS-9386: Remove correct config keys on purpose uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
PhMemmel committed Oct 2, 2024
1 parent 87aaa61 commit 2804e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/plugininfo/aipurpose.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ public function load_settings(\part_of_admin_tree $adminroot, $parentnodename, $
#[\Override]
public function uninstall(\progress_trace $progress) {
global $DB;
$DB->delete_records('local_ai_manager_config', ['configkey' => 'purpose_' . $this->name . '_tool']);
$DB->delete_records('local_ai_manager_config', ['configkey' => 'purpose_' . $this->name . '_tool_role_basic']);
$DB->delete_records('local_ai_manager_config', ['configkey' => 'purpose_' . $this->name . '_tool_role_extended']);
$DB->delete_records('local_ai_manager_config', ['configkey' => $this->name . '_max_requests_basic']);
$DB->delete_records('local_ai_manager_config', ['configkey' => $this->name . '_max_requests_extended']);
return true;
Expand Down

0 comments on commit 2804e7c

Please sign in to comment.