Skip to content

Commit 0eb7074

Browse files
committed
Fix migration for API token encryption
Issue: documentacao-e-tarefas/scielo#846 Signed-off-by: Thiago Brasil <thiago@lepidus.com.br>
1 parent e48fcd7 commit 0eb7074

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

classes/migration/APITokenEncryptionMigration.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function up(): void
1818
->where('plugin_name', 'dataverseplugin')
1919
->where('setting_name', 'apiToken')
2020
->get(['context_id', 'setting_value'])
21-
->each(function ($row) {
21+
->each(function ($row) use ($encrypter) {
2222
if (empty($row->setting_value) || $encrypter->textIsEncrypted($row->setting_value)) {
2323
return;
2424
}

upgrade.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
<install version="2.8.6.0">
55
<migration
6-
class="plugins.generic.dataverse.classes.migration.EncryptResponsesMigration"
6+
class="plugins.generic.dataverse.classes.migration.APITokenEncryptionMigration"
77
/>
88
</install>

0 commit comments

Comments
 (0)