feat(rfid): front end view of the readers and there status

This commit is contained in:
2025-07-10 21:29:01 -05:00
parent 6584b37cb0
commit f7b4de8130
15 changed files with 533 additions and 36 deletions

View File

@@ -12,13 +12,15 @@ export const getAllUsersRoles = async () => {
const { data, error } = await tryCatch(db.select().from(userRoles));
if (error) {
returnRes(
return returnRes(
false,
"auth",
"auth",
"There was an error getting users",
"error",
new Error("No user exists.")
);
}
returnRes(true, "All users.", data);
return { success: true, message: "All users", data };
return returnRes(true, "auth", "auth", "All users.", "info", data);
};

View File

@@ -32,7 +32,10 @@ export const getAllUsers = async () => {
if (error) {
returnRes(
false,
"auth",
"auth",
"There was an error getting users",
"error",
new Error("No user exists.")
);
}