Skip to content

Commit 945cfe9

Browse files
committed
Merge branch 'feat-permissions-classes' of https://github.com/appwrite/sdk-generator into feat-tests-for-helper-classes
2 parents 009741d + 2bf7f81 commit 945cfe9

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)