Skip to content

Commit

Permalink
Do not log usage manually on import
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Sep 19, 2024
1 parent b362729 commit 877e234
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ public function attachFindingAidRecords(MigratePostRowSaveEvent $event) {
'uid' => $file->uid,
]);
$file->save();

$file_usage = \Drupal::service('file.usage');
$file_usage->add($file, 'loyalist_migrate', 'node', $nid);

$node->field_finding_aid_record[] = [
'target_id' => $file->id(),
Expand Down

0 comments on commit 877e234

Please sign in to comment.