style: apply prettier formatting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-04-15 00:04:11 +03:00
parent c60a9bef2d
commit 4d562524cd
5 changed files with 10 additions and 20 deletions

View File

@@ -12,9 +12,7 @@ export function addMember(row: AgentGroupMember): void {
}
export function removeMember(userId: string, agentGroupId: string): void {
getDb()
.prepare('DELETE FROM agent_group_members WHERE user_id = ? AND agent_group_id = ?')
.run(userId, agentGroupId);
getDb().prepare('DELETE FROM agent_group_members WHERE user_id = ? AND agent_group_id = ?').run(userId, agentGroupId);
}
export function getMembers(agentGroupId: string): AgentGroupMember[] {

View File

@@ -269,7 +269,9 @@ describe('messaging group agents', () => {
});
createMessagingGroupAgent({ ...mga(), id: 'mga-2', messaging_group_id: 'mg-2' });
const dests = getDestinations('ag-1').map((d) => d.local_name).sort();
const dests = getDestinations('ag-1')
.map((d) => d.local_name)
.sort();
expect(dests).toEqual(['gen', 'gen-2']);
});
});

View File

@@ -14,9 +14,9 @@ export function upsertUserDm(row: UserDm): void {
}
export function getUserDm(userId: string, channelType: string): UserDm | undefined {
return getDb()
.prepare('SELECT * FROM user_dms WHERE user_id = ? AND channel_type = ?')
.get(userId, channelType) as UserDm | undefined;
return getDb().prepare('SELECT * FROM user_dms WHERE user_id = ? AND channel_type = ?').get(userId, channelType) as
| UserDm
| undefined;
}
export function getUserDmsForUser(userId: string): UserDm[] {