Skip to content

Commit 1c97aad

Browse files
authored
Merge pull request #755 from companieshouse/chore/server-url-log
debug: differentiate between PUT and GET debuggers for overseas entity service
2 parents 5e42ae2 + 8286f98 commit 1c97aad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/services/overseas-entities/service.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export default class OverseasEntityService {
2828
const URL = `transactions/${transactionId}/overseas-entity/${overseasEntityId}${(forceFetch ? "?force=true" : "")}`
2929
const response: HttpResponse = await this.client.httpGet(URL);
3030

31-
console.log("DDDDDDDDDDD1 getOverseasEntity forceFetch: " + forceFetch);
32-
console.log("DDDDDDDDDDD2 getOverseasEntity URL: " + URL);
31+
console.log(`getOverseasEntity forceFetch value: ${forceFetch}`);
32+
console.log(`getOverseasEntity URL: ${URL}`);
33+
3334
if (response.error) {
3435
return {
3536
httpStatusCode: response.status,
@@ -89,8 +90,8 @@ export default class OverseasEntityService {
8990
public async putOverseasEntity (transactionId: string, overseasEntityId: string, body: OverseasEntity, forceUpdate: boolean = false): Promise<Resource<HttpStatusCode> | ApiErrorResponse> {
9091
const URL = `transactions/${transactionId}/overseas-entity/${overseasEntityId}${(forceUpdate ? "?force=true" : "")}`
9192

92-
console.log("DDDDDDDDDDD3 getOverseasEntity forceFetch: " + forceUpdate);
93-
console.log("DDDDDDDDDDD4 getOverseasEntity URL: " + URL);
93+
console.log(`putOverseasEntity forceUpdate value: ${forceUpdate}`);
94+
console.log(`putOverseasEntity URL: ${URL}`);
9495
const resp = await this.client.httpPut(URL, mapOverseasEntity(body));
9596

9697
if (resp.error) {

0 commit comments

Comments
 (0)