Compare commits
5 Commits
4bbe520366
...
1.0.6
| Author | SHA1 | Date | |
|---|---|---|---|
| efb237885f | |||
|
ec61e29fb0
|
|||
|
d97a7d7f95
|
|||
|
08293e8c16
|
|||
| 88562d01cd |
@@ -1,6 +1,7 @@
|
||||
.build.yarnrc.yml
|
||||
.drone.yml
|
||||
.eslintrc*
|
||||
.npmrc
|
||||
.prettierrc*
|
||||
.yarnrc.yml
|
||||
babel.config.*
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user