refactor: ⚰️ Remove dead code and useless files

This commit is contained in:
Jesse Wierzbinski 2024-06-12 20:34:17 -10:00
parent 98f3ab23d8
commit 83275be536
No known key found for this signature in database
14 changed files with 3 additions and 185 deletions

View file

@ -337,28 +337,6 @@ export const findManyUsers = async (
return output.map((user) => transformOutputToUserWithRelations(user));
};
export const findFirstUser = async (
query: Parameters<typeof db.query.Users.findFirst>[0],
): Promise<UserWithRelations | null> => {
const output = await db.query.Users.findFirst({
...query,
with: {
...userRelations,
...query?.with,
},
extras: {
...userExtras,
...query?.extras,
},
});
if (!output) {
return null;
}
return transformOutputToUserWithRelations(output);
};
/**
* Resolves a WebFinger identifier to a user.
* @param identifier Either a UUID or a username