Skip to content

Commit 2d2e894

Browse files
committed
Update CHANGELOG
1 parent 6679dd6 commit 2d2e894

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
## Version History
1212

13+
### v11.12.0 - 2025-10-29
14+
15+
- :bug: Due to a bug in TAK Server (https://issues.tak.gov/browse/TKS-1023) patch the Mission List Layers to only use Mission Name
16+
1317
### v11.11.0 - 2025-10-29
1418

1519
- :rocket: Add interactive subcommand selection

lib/api/mission-layer.ts

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -135,23 +135,16 @@ export default class MissionLayerCommands extends Commands {
135135
name: string,
136136
opts?: Static<typeof MissionOptions>
137137
): Promise<Static<typeof TAKList_MissionLayer>> {
138-
let res;
138+
// TODO: This is an issue due to: https://issues.tak.gov/browse/TKS-1023
139+
if (this.#isGUID(name)) name = (await this.api.Mission.getGuid(name, {}, opts)).name;
140+
//const url = new URL(`/Marti/api/missions/guid/${this.#encodeName(name)}/layers`, this.api.url);
139141

140-
if (this.#isGUID(name)) {
141-
const url = new URL(`/Marti/api/missions/guid/${this.#encodeName(name)}/layers`, this.api.url);
142+
const url = new URL(`/Marti/api/missions/${this.#encodeName(name)}/layers`, this.api.url);
142143

143-
res = await this.api.fetch(url, {
144-
method: 'GET',
145-
headers: this.#headers(opts),
146-
});
147-
} else {
148-
const url = new URL(`/Marti/api/missions/${this.#encodeName(name)}/layers`, this.api.url);
149-
150-
res = await this.api.fetch(url, {
151-
method: 'GET',
152-
headers: this.#headers(opts),
153-
});
154-
}
144+
const res = await this.api.fetch(url, {
145+
method: 'GET',
146+
headers: this.#headers(opts),
147+
});
155148

156149
res.data.map((l: Static<typeof MissionLayer>) => {
157150
if (l.type === MissionLayerType.UID && !l.uids) {

lib/auth.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ export class APIAuthToken extends APIAuth {
7474
opts.headers.Authorization = `Bearer ${this.jwt}`;
7575
}
7676

77-
console.error('OPTIONS', opts);
78-
7977
return await fetch(url, opts);
8078
}
8179
}

0 commit comments

Comments
 (0)