Restructuring the folders (#1)
Co-authored-by: mifi <badmf@mifi.dev> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
5
src/dao/readOneByRecord.ts
Normal file
5
src/dao/readOneByRecord.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Types } from 'mongoose';
|
||||
|
||||
import { Auth } from '../model/auth';
|
||||
|
||||
export const readOneByRecord = async (record: Types.ObjectId) => Auth.findOne({ record });
|
||||
Reference in New Issue
Block a user