feat: update getAll25 function to return consistent response format and modify frontend route to handle async data retrieval

This commit is contained in:
2026-01-13 19:51:12 +01:00
parent 110a5b17c2
commit 28c3c119f1
2 changed files with 6 additions and 5 deletions

View File

@@ -14,8 +14,8 @@ const pool = mysql
export const getAll25 = async () => {
const [rows] = await pool.query("SELECT unique_key FROM users");
if (rows.length > 0) {
return rows;
return {rows};
} else {
return "No data found";
return { message: "No data found" };
}
};