EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
Plugins.js
Go to the documentation of this file.
1
const db = require("../db");
2
3
module.exports = {
4
getAllowedPlugins
5
};
6
7
/**
8
*
9
* @param agentId
10
*/
11
async function getAllowedPlugins(agentId) {
12
const result = await db.query(
13
`SELECT plugin_name FROM allowed_plugins WHERE agent_id = $1`,
14
[agentId]
15
);
16
return result.rows.map(r => r.plugin_name);
17
}
rmm-psa-backend
models
Plugins.js
Generated by
1.14.0