mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:57:08 +00:00
Refactor configuration methods in DB
This commit is contained in:
0
lib/www/server/lib/db/configuration/delete.js
Normal file
0
lib/www/server/lib/db/configuration/delete.js
Normal file
@@ -1,4 +1,4 @@
|
||||
const { setSurvey } = require('./connection');
|
||||
const { setSurvey } = require('../connection');
|
||||
|
||||
async function get (projectId, path, opts = {}) {
|
||||
const client = await setSurvey(projectId);
|
||||
@@ -24,6 +24,4 @@ async function get (projectId, path, opts = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
get
|
||||
};
|
||||
module.exports = get;
|
||||
7
lib/www/server/lib/db/configuration/index.js
Normal file
7
lib/www/server/lib/db/configuration/index.js
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
module.exports = {
|
||||
get: require('./get'),
|
||||
post: require('./post'),
|
||||
put: require('./put'),
|
||||
delete: require('./delete')
|
||||
}
|
||||
0
lib/www/server/lib/db/configuration/post.js
Normal file
0
lib/www/server/lib/db/configuration/post.js
Normal file
0
lib/www/server/lib/db/configuration/put.js
Normal file
0
lib/www/server/lib/db/configuration/put.js
Normal file
Reference in New Issue
Block a user