2025-06-05 04:43:00 +00:00
|
|
|
export const postgresServices = {
|
|
|
|
|
getUsers: async (args) => {
|
2025-06-23 21:55:42 +00:00
|
|
|
try {
|
|
|
|
|
const dataResp = await runQuery('SELECT * FROM users');
|
|
|
|
|
return dataResp;
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.log('GET USERS ERROR: ', err);
|
|
|
|
|
throw err;
|
|
|
|
|
}
|
2025-06-05 04:43:00 +00:00
|
|
|
},
|
|
|
|
|
getDepartments: async (args) => {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|