Skip to content

Commit

Permalink
fix(basemaps): Fix the aerial config path for create pr cli. (#1013)
Browse files Browse the repository at this point in the history
#### Motivation

The aerial config path is incorrect by using the filename.json, we
should hard coded as aerial.json like others topographic.json and
elevation.json

#### Modification
Fix the aerial config path to aerial.json

#### Checklist

_If not applicable, provide explanation of why._

- [ ] Tests updated
- [ ] Docs updated
- [ ] Issue linked in Title
  • Loading branch information
Wentao-Kuang authored Jun 21, 2024
1 parent 25ab13e commit eed59e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/basemaps-github/make.cog.github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ export class MakeCogGithub {
this.createTileSetPullRequest(gh, branch, title, tileSetPath, tileSet);
} else {
// Prepare new aerial tileset config
const tileSetPath = fsa.joinAll('config', 'tileset', `${filename}.json`);
const tileSetPath = fsa.joinAll('config', 'tileset', `aerial.json`);
const tileSetContent = await gh.getContent(tileSetPath);
if (tileSetContent == null) throw new Error(`Unable get the ${filename}.json from config repo.`);
if (tileSetContent == null) throw new Error(`Unable get the aerial.json from config repo.`);
const tileSet = JSON.parse(tileSetContent) as ConfigTileSetRaster;
const newTileSet = await this.prepareRasterTileSetConfig(layer, tileSet, category);
// Github create pull request
Expand Down

0 comments on commit eed59e9

Please sign in to comment.