Skip to content

Commit

Permalink
imported needed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vsun757 committed Oct 4, 2023
1 parent 74d157b commit 5b5d4ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
14 changes: 14 additions & 0 deletions app/repository/groups-repository.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict';

const BaseRepository = require('./_base.repository');
const Group = require('../models/group-model');

class GroupsRepository extends BaseRepository {

constructor() {
super(Group);

}
}

module.exports = new GroupsRepository();
9 changes: 1 addition & 8 deletions app/services/tactics-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ const config = require('../config/config');
const regexValidator = require('../lib/regex');

Check failure on line 11 in app/services/tactics-service.js

View workflow job for this annotation

GitHub Actions / static-checks

'regexValidator' is assigned a value but never used
const {lastUpdatedByQueryHelper} = require('../lib/request-parameter-helper');

Check failure on line 12 in app/services/tactics-service.js

View workflow job for this annotation

GitHub Actions / static-checks

'lastUpdatedByQueryHelper' is assigned a value but never used

const errors = {
missingParameter: 'Missing required parameter',
badlyFormattedParameter: 'Badly formatted parameter',
duplicateId: 'Duplicate id',
notFound: 'Document not found',
invalidQueryStringParameter: 'Invalid query string parameter'
};
exports.errors = errors;
const { BadlyFormattedParameterError, DuplicateIdError, NotFoundError, InvalidQueryStringParameterError, MissingParameterError } = require('../exceptions');

Check failure on line 14 in app/services/tactics-service.js

View workflow job for this annotation

GitHub Actions / static-checks

'DuplicateIdError' is assigned a value but never used

Check failure on line 14 in app/services/tactics-service.js

View workflow job for this annotation

GitHub Actions / static-checks

'NotFoundError' is assigned a value but never used

Check failure on line 14 in app/services/tactics-service.js

View workflow job for this annotation

GitHub Actions / static-checks

'InvalidQueryStringParameterError' is assigned a value but never used

const BaseService = require('./_base.service');
const TacticsRepository = require('../repository/tactics-repository');
Expand Down

0 comments on commit 5b5d4ec

Please sign in to comment.