Skip to content

Commit

Permalink
#1583 Remove code related to unused table activation_codes
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhina-e committed Sep 30, 2024
1 parent fefdc7f commit 4900380
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 318 deletions.
117 changes: 0 additions & 117 deletions app/model/activation-codes.js

This file was deleted.

1 change: 0 additions & 1 deletion app/model/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ exports.AudioEventDetectionsClustering = require('./audio-event-detections-clust
exports.ClusteringJobs = require('./clustering-jobs');
exports.oauth = require('./oauth');
exports.AudioEventDetections = require('./audio-event-detections');
exports.ActivationCodes = require('./activation-codes');
exports.AdminPlots = require('./admin-plots');
exports.AccessTokens = require('./access-tokens');
exports.CitizenScientist = require('./citizen-scientist');
17 changes: 0 additions & 17 deletions app/routes/admin/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,4 @@ router.put('/:projectId', function(req, res, next) {
}).catch(next);
});


router.get('/codes', function(req, res, next) {
res.type('json');
model.ActivationCodes.listAll().then(function(codes){
res.json(codes);
}).catch(next);
});


router.post('/codes', function(req, res, next) {
res.type('json');
model.ActivationCodes.createCode(req.session.user, req.body).then(function(){
res.json(true);
}).catch(next);
});


module.exports = router;
54 changes: 0 additions & 54 deletions assets/app/admin/projects/codes.html

This file was deleted.

126 changes: 0 additions & 126 deletions assets/app/admin/projects/codes.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/app/admin/projects/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<div>
<div class="sidenav">
<a ui-sref="projects.list" ui-sref-active="active">All Projects</a>
<a ui-sref="projects.codes" ui-sref-active="active">Codes</a>
</div>
<div class="container-fluid container-sidenav">
<div class="row">
Expand Down
3 changes: 1 addition & 2 deletions assets/app/admin/projects/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
angular.module('a2.admin.projects', [
'ui.router',
'templates-arbimon2',
'a2.admin.projects.list',
'a2.admin.projects.codes',
'a2.admin.projects.list'
])
.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise("/dashboard");
Expand Down

0 comments on commit 4900380

Please sign in to comment.