Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Feb 18, 2024
1 parent 3b61502 commit 722952e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/GenerateSitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function sitemap_names(SitemapIndex $sitemapIndex): void
Name::where('name', '!=', '_PRENOMS_RARES')
->chunkById(2000, function (Collection $names, int $key) use ($sitemapIndex) {

$file = static::PREFIX_PATH . '/sitemap_' . Str::padLeft($key, 2, '0') . '.xml';
$file = static::PREFIX_PATH . '/sitemap_' . Str::padLeft("$key", 2, '0') . '.xml';

Sitemap::create()
->add($names)
Expand Down

0 comments on commit 722952e

Please sign in to comment.