Fix db.configuration.get()

This commit is contained in:
D. Berge
2023-08-30 13:43:36 +02:00
parent 3dd1aaeddb
commit b4f23822c4

View File

@@ -12,7 +12,7 @@ async function get (projectId, opts = {}) {
const res = await client.query(text, [projectId]);
client.release();
return res.rows[0];
return res.rows[0].meta;
} catch (err) {
if (err.code == "42P01") {
throw { status: 404, message: "Not found" };