Fix for Nick

This commit is contained in:
Christopher Cookman 2024-12-27 21:26:16 -07:00
parent 95c94b0e6d
commit a37629682c
2 changed files with 2 additions and 2 deletions

View file

@ -719,7 +719,8 @@ app.get('/api/v1/route/:apiKey/:ani/:number', (req, res) => {
const number = Number(req.params.number);
const ani = Number(req.params.ani);
pool.getConnection().then(conn => {
conn.query("SELECT * FROM routes WHERE apiKey = ? AND block_start <= ? AND block_start + block_length >= ?", [apiKey, ani, ani]).then((rows) => {
//conn.query("SELECT * FROM routes WHERE apiKey = ? AND block_start <= ? AND block_start + block_length >= ?", [apiKey, ani, ani]).then((rows) => {
conn.query("SELECT * FROM routes WHERE apiKey = ?", [apiKey]).then((rows) => { // We'll try this Nick, if it doesn't work we'll go back to the original
const row = rows[0];
// If no row or error, return 401
if (!row) {

View file

@ -31,7 +31,6 @@
</div>
<div id="footer" class="text-light mt-5"></div>
</div>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/bootstrap.bundle.min.js"></script>
<script src="/assets/js/jquery.min.js"></script>
<script>