Release 1.0.6 #4

Merged
mifi merged 12 commits from develop into main 2023-05-26 21:49:26 +00:00
4 changed files with 4 additions and 20 deletions
Showing only changes of commit ec61e29fb0 - Show all commits

View File

@@ -1,9 +1,5 @@
import { Types } from 'mongoose'; import { Types } from 'mongoose';
<<<<<<<< HEAD:src/dao/auth/readOneByRecord.ts
import { Auth } from '../../model/auth'; 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 }); 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';
========
import { Auth } from '../model/auth';
>>>>>>>> main:src/dao/readOneByUsername.ts
export const readOneByUsername = async (username: string) => Auth.findOne({ username }); 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'; export { readAll };
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 } });

View File

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