Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const getBaniLines = baniId => Banis
.query()
.joinEager( 'lines.shabad' )
.orderBy( [ 'line_group', 'l.order_id' ] )
.where( 'banis.id', baniId )
.withTranslations()
.withTransliterations()
.eagerOptions( { minimize: false, aliases: { lines: 'l' } } )
.then( ( [ bani ] ) => bani )
export const getBanis = () => Banis.query()