Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ivyadam committed Dec 7, 2021
2 parents 6f155b1 + 6b68b42 commit 7c9e502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library-express/loanitems.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = function () {
var express = require('express');
var router = express.Router();
/*Get loan item data from database*/
function getLoanItems(res, mysql, context, complete) {
function getLoanItems(res, mysql, context, complete) {
var sql = "SELECT li.loanID, l.memberID, li.bookID, CONCAT(p.firstName, ' ', p.lastName) as 'patronName', t.bookTitle, DATE_FORMAT(li.dueDate, '%m/%d/%Y') as 'dueDate', ls.statusDescription, li.renewalCount FROM LoanItems li INNER JOIN LoanStatus ls ON li.loanStatus = ls.statusID INNER JOIN Loans l ON li.loanID = l.loanID INNER JOIN Patrons p ON l.memberID = p.memberID INNER JOIN Books b ON li.bookID = b.bookID INNER JOIN Titles t ON b.ISBN = t.ISBN ORDER BY li.loanID;";
mysql.pool.query(sql, function (error, results, fields) {
if (error) {
Expand Down

0 comments on commit 7c9e502

Please sign in to comment.