Skip to content

Commit

Permalink
Remove unnecessary line in getUsers function
Browse files Browse the repository at this point in the history
  • Loading branch information
m-abdelwahab committed Feb 1, 2024
1 parent 03099d7 commit 6287a4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { users } from "../db/schema";
export const getUsers = async () => {
try {
const allUsers = await db.select().from(users);

return { users: allUsers };
} catch (error) {
throw new Error(error);
Expand Down

0 comments on commit 6287a4c

Please sign in to comment.