Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix trackID check regression

  • Loading branch information...
commit 17d13b9efaed591cd4242411c75a786bae280e84 1 parent a800823
@jhurliman authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 models/mysql.js
View
6 models/mysql.js
@@ -142,12 +142,8 @@ function addTrack(artistID, fp, callback) {
length = parseInt(length, 10);
// Sanity checks
- if (!trackID || trackID.length !== 16 ||
- !artistID || artistID.length !== 16 ||
- isNaN(length))
- {
+ if (!artistID || artistID.length !== 16 || isNaN(length))
return callback('Attempted to add track with missing fields', null);
- }
var sql = 'INSERT INTO tracks ' +
'(name,artist_id,length,import_date) ' +
Please sign in to comment.
Something went wrong with that request. Please try again.