Skip to content

Commit 719103a

Browse files
committed
feat: add findUserBySSHKey function to user database operations
1 parent 8df000a commit 719103a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/db/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ export const deleteRepo = (_id: string): Promise<void> => sink.deleteRepo(_id);
180180
export const findUser = (username: string): Promise<User | null> => sink.findUser(username);
181181
export const findUserByEmail = (email: string): Promise<User | null> => sink.findUserByEmail(email);
182182
export const findUserByOIDC = (oidcId: string): Promise<User | null> => sink.findUserByOIDC(oidcId);
183+
export const findUserBySSHKey = (sshKey: string): Promise<User | null> =>
184+
sink.findUserBySSHKey(sshKey);
183185
export const getUsers = (query?: object): Promise<User[]> => sink.getUsers(query);
184186
export const deleteUser = (username: string): Promise<void> => sink.deleteUser(username);
185187
export const updateUser = (user: User): Promise<void> => sink.updateUser(user);

0 commit comments

Comments
 (0)