Skip to content

Commit 57865c1

Browse files
committed
Lint
1 parent efd69e3 commit 57865c1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/user/formats/hal.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ export function collection(paginatedResult: PaginatedResult<User>, embeddedUsers
1111
const totalPages = Math.ceil(total / pageSize);
1212

1313
const links: Record<string, HalLink|HalLink[]> = {
14-
'self': getUserPageHref(currentPage),
15-
'item': users.map( user => ({
16-
href: user.href,
17-
title: user.nickname,
18-
})),
19-
'create-form': { href: '/user/new', title: 'Create New User', type: 'text/html'},
20-
'find-by-href': {
21-
title: 'Find a user through a identity/href (exact match)',
22-
href: '/user/byhref/{href}',
23-
templated: true,
24-
}
14+
'self': getUserPageHref(currentPage),
15+
'item': users.map( user => ({
16+
href: user.href,
17+
title: user.nickname,
18+
})),
19+
'create-form': { href: '/user/new', title: 'Create New User', type: 'text/html'},
20+
'find-by-href': {
21+
title: 'Find a user through a identity/href (exact match)',
22+
href: '/user/byhref/{href}',
23+
templated: true,
24+
}
2525
};
2626

2727
if(hasNextPage){
@@ -87,7 +87,7 @@ export function item(user: User, privileges: PrivilegeMap, hasControl: boolean,
8787
href: 'https://curveballjs.org/schemas/a12nserver/user.json',
8888
type: 'application/schema+json',
8989
}
90-
}
90+
};
9191

9292
if (hasControl || currentUserPrivileges.has('a12n:one-time-token:generate')) {
9393
links['one-time-token'] = {

0 commit comments

Comments
 (0)