feat: Convert all query files to JS
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import SamlAuthProvider from '../../models/saml-auth-provider.ee';
|
||||
|
||||
const getSamlAuthProvider = async (_parent, params, context) => {
|
||||
context.currentUser.can('read', 'SamlAuthProvider');
|
||||
|
||||
const samlAuthProvider = await SamlAuthProvider.query()
|
||||
.limit(1)
|
||||
.first()
|
||||
.throwIfNotFound();
|
||||
|
||||
return samlAuthProvider;
|
||||
};
|
||||
|
||||
export default getSamlAuthProvider;
|
Reference in New Issue
Block a user