Skip to content

Commit

Permalink
fix: gdpr anonimization fails due to incorrect column name
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Oct 16, 2023
1 parent 1eafc27 commit cb8e901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Data/Uploads.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function export(ZipFile $zip): void
public function anonymize(): void
{
File::query()
->where('user_id', $this->user->id)
->where('actor_id', $this->user->id)
->update([
'actor_id' => null,
]);
Expand All @@ -50,7 +50,7 @@ public function delete(): void
// TODO: this currently only removes the entry from the DB, we also need to remove the files from storage.

File::query()
->where('user_id', $this->user->id)
->where('actor_id', $this->user->id)
->delete();
}
}

0 comments on commit cb8e901

Please sign in to comment.