cityssm/faster-web-helper

View on GitHub
modules/purchaseOrderApprovals/database/getApprovals.js

Summary

Maintainability
A
0 mins
Test Coverage
export default function getApprovals(database, tenant, orderNumber) {
    return database
        .prepare(`select userName, approvalAmount, isApproved,
        lastUpdatedDate, lastUpdatedTime
        from Approvals
        where tenant = ?
        and orderNumber = ?`)
        .all(tenant, orderNumber);
}