fix(auth): proper logging for errors in role check

This commit is contained in:
2025-03-13 15:41:43 -05:00
parent c386c5ea8b
commit 90d0760352

View File

@@ -35,10 +35,10 @@ export const areRolesIn = async () => {
`${JSON.stringify(newRole)}, "Roles were just added due to missing them on server startup"`
);
} catch (error) {
createLog("error", "lst", "auth", "There was an error adding new roles to the db");
createLog("error", "lst", "auth", `There was an error adding new roles to the db, ${error}`);
}
}
} catch (error) {
createLog("error", "lst", "auth", "There was an error getting or adding new roles");
createLog("error", "lst", "auth", `There was an error adding new roles to the db, ${error}`);
}
};