style: restore prettier formatting displaced by the main merge

This commit is contained in:
Juan Castro
2026-09-24 16:35:09 -04:00
parent 8f0a317a97
commit 66ee50317c
2 changed files with 16 additions and 11 deletions
+12 -10
View File
@@ -761,16 +761,18 @@ export class TeamService extends PuterService {
id === null ? null : (users.get(id)?.username ?? null);
return {
items: page.items.map((row): MemberActivityEntry => ({
action: row.action,
reason: row.reason,
created_at: epochSeconds(row.created_at),
username: name(row.user_id_keep),
actor_username: name(row.actor_user_id),
// Only a sign-in carries these; the shape stays uniform.
ip: null,
user_agent: null,
})),
items: page.items.map(
(row): MemberActivityEntry => ({
action: row.action,
reason: row.reason,
created_at: epochSeconds(row.created_at),
username: name(row.user_id_keep),
actor_username: name(row.actor_user_id),
// Only a sign-in carries these; the shape stays uniform.
ip: null,
user_agent: null,
}),
),
...(page.cursor ? { cursor: page.cursor } : {}),
};
}
+4 -1
View File
@@ -148,7 +148,10 @@ const RESERVED_HANDLES = new Set([
]);
export type HandleRejection =
'too_short' | 'too_long' | 'malformed' | 'reserved';
| 'too_short'
| 'too_long'
| 'malformed'
| 'reserved';
/** Trimmed and capped, so the same name is accepted on every engine. */
export const normalizeTeamName = (name: string): string => {