Breaking down mega-package. Hello auth-db 1.0.0!
This commit is contained in:
5
lib/dao/readOneByRecord.ts
Normal file
5
lib/dao/readOneByRecord.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Types } from 'mongoose';
|
||||
|
||||
import { Auth } from '..';
|
||||
|
||||
export const readOneByRecord = async (record: Types.ObjectId) => Auth.findOne({ record });
|
||||
Reference in New Issue
Block a user