Skip to content

Commit

Permalink
fix: exported drafts not in drafts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland authored Oct 12, 2023
1 parent ba7c45f commit 2c0a2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Drafts.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function export(ZipFile $zip): void
->where('user_id', $this->user->id)
->each(function (Draft $draft) use ($zip) {
$zip->addFromString(
"draft-{$draft->id}.json",
"drafts/draft-{$draft->id}.json",
json_encode(
$this->sanitize($draft),
JSON_PRETTY_PRINT
Expand Down

0 comments on commit 2c0a2e6

Please sign in to comment.