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