Skip to content

Commit

Permalink
Review commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDijkema committed Nov 4, 2024
1 parent a6b0f2f commit 6b49682
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/api/digitalMedia/GetDigitalMedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,10 @@ const GetDigitalMedia = async({ handle, version } : { handle: string, version?:
let digitalMedia: DigitalMedia | undefined;

if (handle) {
let endPoint: string;

if (version) {
endPoint = `digital-media${handle}/${version}`;
} else {
endPoint = `digital-media/${handle}`;
}

try {
const result = await axios({
method: 'get',
url: endPoint,
url: `digital-media/${handle}${version ? '/' + version : ''}`,
responseType: 'json'
});

Expand Down

0 comments on commit 6b49682

Please sign in to comment.