mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-14 13:49:40 -06:00
18 lines
363 B
JavaScript
18 lines
363 B
JavaScript
const AppSettings = require("../../../models/AppSettings");
|
|
const SERVICE_NAME = "SettingsModule";
|
|
|
|
const getAppSettings = async () => {
|
|
try {
|
|
const settings = AppSettings.findOne();
|
|
return settings;
|
|
} catch (error) {
|
|
error.service = SERVICE_NAME;
|
|
error.method = "getSettings";
|
|
throw error;
|
|
}
|
|
};
|
|
|
|
module.exports = {
|
|
getAppSettings,
|
|
};
|