Skip to content

Commit

Permalink
Use consistent template string replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiancook committed Aug 28, 2023
1 parent f5c71f0 commit aae5cdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/data/file/prefix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export function getMediaPrefix() {
function getWithTemplate(id: string, template?: string, prefix?: string) {
if (template) {
return template
.replaceAll("{partnerId}", partnerId)
.replaceAll("{userId}", userId)
.replaceAll("{organisationId}", organisationId)
.replaceAll("{id}", id);
.replaceAll(":partnerId", partnerId)
.replaceAll(":userId", userId)
.replaceAll(":organisationId", organisationId)
.replaceAll(":id", id);
}
return join(prefix, id);
}
Expand Down

0 comments on commit aae5cdf

Please sign in to comment.