Skip to content

Commit

Permalink
Removed commented lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfzabarino committed Nov 7, 2014
1 parent 3c73d6e commit 91e9dae
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions api/controllers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@


var datasource = require('./../../datasource').getDataSource();
//var Challenge = datasource.Challenge;
//var ChallengeFile = datasource.ChallengeFile;
var Submission = datasource.Submission;
var SubmissionFile = datasource.SubmissionFile;
var File = datasource.File;
Expand All @@ -22,16 +20,6 @@ var controllerHelper = require('./../../lib/controllerHelper');
// build controller for the nested files resource
var fileController = controllerHelper.buildController(File, [Submission], SubmissionFile, {filtering: false});

//// build controller for the nested files resource
//var fileController = controllerHelper.buildController(File, [{
// manyToManyModel: ChallengeFile,
// referenceModel: Challenge
//}, {
// manyToManyModel: SubmissionFile,
// referenceModel: Submission
//}], {filtering: false});

//SELECT * FROM Files WHERE id IN (SELECT fileId FROM ChallengeFile WHERE challengeId = ?)
module.exports = {
getFiles: fileController.all,
addFile: fileController.create,
Expand Down

0 comments on commit 91e9dae

Please sign in to comment.