9 lines
291 B
TypeScript
9 lines
291 B
TypeScript
import { Types } from 'mongoose';
|
|
|
|
import { STRATEGIES } from '@mifi/auth-common/lib/enums/strategies';
|
|
|
|
import { Strategy } from '../../model/strategy';
|
|
|
|
export const readOneByParentAndMethod = async (parent: Types.ObjectId, method: STRATEGIES) =>
|
|
Strategy.findOne({ method, parent });
|