Skip to content

Commit 347835a

Browse files
committed
feat: update role.ts files
1 parent 2bf7f81 commit 347835a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

templates/deno/src/role.ts.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class Role {
44
}
55

66
public static user(id: string): string {
7-
return `user:$id`
7+
return `user:${id}`
88
}
99

1010
public static users(): string {
@@ -17,12 +17,12 @@ export class Role {
1717

1818
public static team(id: string, role: string = ''): string {
1919
if(role === '') {
20-
return `team:$id`
20+
return `team:${id}`
2121
}
22-
return `team:$id/$role`
22+
return `team:${id}/${role}`
2323
}
2424

2525
public static status(status: string): string {
26-
return `status:$status)`
26+
return `status:${status}`
2727
}
2828
}

templates/web/src/role.ts.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class Role {
44
}
55

66
public static user(id: string): string {
7-
return `user:$id`
7+
return `user:${id}`
88
}
99

1010
public static users(): string {
@@ -17,12 +17,12 @@ export class Role {
1717

1818
public static team(id: string, role: string = ''): string {
1919
if(role === '') {
20-
return `team:$id`
20+
return `team:${id}`
2121
}
22-
return `team:$id/$role`
22+
return `team:${id}/${role}`
2323
}
2424

2525
public static status(status: string): string {
26-
return `status:$status)`
26+
return `status:${status}`
2727
}
2828
}

0 commit comments

Comments
 (0)