refactor(naming): refactored to use camelCase in table properties

This commit is contained in:
Dimitrie Stefanescu
2020-04-13 16:16:01 +01:00
parent 5588e18478
commit caeee618cc
10 changed files with 107 additions and 113 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ function authorize( aclTable, resourceTable, requiredRole ) {
if ( !req.user ) return res.status( 401 ).send( { error: 'Unauthorized' } )
let [ entry ] = await ACL( ).where( { resource_id: req.params.resourceId, user_id: req.user.id } ).select( '*' )
let [ entry ] = await ACL( ).where( { resourceId: req.params.resourceId, userId: req.user.id } ).select( '*' )
if ( !entry ) {
return res.status( 401 ).send( { error: 'Unauthorized' } )