Skip to content

Commit e66cb91

Browse files
committed
chore: bump package version to 2.3.1 and add SHORT_UUID to template keys
1 parent 0cda179 commit e66cb91

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

libs/contract/constants/templates/template-keys.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ export const TEMPLATE_KEYS = [
1010
'SUBSCRIPTION_URL',
1111
'TAG',
1212
'EXPIRE_UNIX',
13+
'SHORT_UUID',
1314
] as const;
1415
export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];

libs/contract/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@remnawave/backend-contract",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"public": true,
55
"license": "AGPL-3.0-only",
66
"description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",

src/common/utils/templates/replace-templates-values.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export class TemplateEngine {
4646
SUBSCRIPTION_URL: `https://${subPublicDomain}/${user.shortUuid}`,
4747
TAG: user.tag || '',
4848
EXPIRE_UNIX: dayjs(user.expireAt).unix(),
49+
SHORT_UUID: user.shortUuid,
4950
});
5051
}
5152
}

0 commit comments

Comments
 (0)