Tweaks and mergefail fixes
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
2023-05-26 17:46:37 -04:00
parent d97a7d7f95
commit ec61e29fb0
4 changed files with 4 additions and 20 deletions

View File

@@ -1,9 +1,5 @@
import { Types } from 'mongoose';
<<<<<<<< HEAD:src/dao/auth/readOneByRecord.ts
import { Auth } from '../../model/auth';
========
import { Auth } from '../model/auth';
>>>>>>>> main:src/dao/readOneByRecord.ts
export const readOneByRecord = async (record: Types.ObjectId) => Auth.findOne({ record });

View File

@@ -1,7 +1,3 @@
<<<<<<<< HEAD:src/dao/auth/readOneByUsername.ts
import { Auth } from '../../model/auth';
========
import { Auth } from '../model/auth';
>>>>>>>> main:src/dao/readOneByUsername.ts
export const readOneByUsername = async (username: string) => Auth.findOne({ username });

View File

@@ -1,9 +1,3 @@
import { FilterQuery } from 'mongoose';
import { readAll } from './auth/readAll';
import { Auth } from '../model/auth';
import { Status } from '../constants/auth';
import { AuthDocument } from '../schema/auth';
export const readAll = async (query: FilterQuery<AuthDocument> = {}) => Auth.find(query);
export const readAllActive = async () => readAll({ status: { $ne: Status.DELETED } });
export { readAll };

View File

@@ -1,5 +1,3 @@
import { Types } from 'mongoose';
import { readOneById } from './auth/readOneById';
import { Auth } from '../model/auth';
export const readOneById = async (id: Types.ObjectId) => Auth.findById(id);
export { readOneById };