-
Notifications
You must be signed in to change notification settings - Fork 10
chore(flight): fix document controller #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
refactor middleware remove admin privileges on documents Fixes #149986605
| validateUser | ||
| } from '../middleware/middleware'; | ||
| import userController from '../controllers/users'; | ||
| import m from '../middleware/middleware'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to resolve path to module '../middleware/middleware' import/no-unresolved
Missing file extension for "../middleware/middleware" import/extensions
| validateRole, | ||
| validateUser | ||
| } from '../middleware/middleware'; | ||
| import userController from '../controllers/users'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to resolve path to module '../controllers/users' import/no-unresolved
Missing file extension for "../controllers/users" import/extensions
| @@ -1,68 +1,58 @@ | |||
| import documentController from '../controllers/documents'; | |||
| import rolesController from '../controllers/roles'; | |||
| import roleController from '../controllers/roles'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to resolve path to module '../controllers/roles' import/no-unresolved
Missing file extension for "../controllers/roles" import/extensions
| @@ -1,5 +1,5 @@ | |||
| import models from '../models'; | |||
| import { documentCreator, isAdmin, isUser } from '../helpers/helper'; | |||
| import { documentCreator, isUser } from '../helpers/helper'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to resolve path to module '../helpers/helper' import/no-unresolved
Missing file extension for "../helpers/helper" import/extensions
refactor middleware remove admin privileges on documents Fixes #149986605
#149986605 fix document controller