Skip to content

Commit 2663838

Browse files
committed
rename repository to repo
1 parent 690ac93 commit 2663838

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/database/repository/ApiKeyRepo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ApiKey, { IApiKey } from '../model/ApiKey';
22

3-
export default class ApiRepository {
3+
export default class ApiRepo {
44

55
public static async findByKey(key: string): Promise<IApiKey> {
66
return ApiKey.findOne({ key: key, status: true }).lean<IApiKey>().exec();

src/database/repository/BlogRepo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Blog, { IBlog } from '../model/Blog';
22
import { Types } from 'mongoose';
33
import { IUser } from '../model/User';
44

5-
export default class BlogRepository {
5+
export default class BlogRepo {
66

77
private static AUTHOR_DETAIL = 'name profilePicUrl';
88
private static BLOG_INFO_ADDITIONAL = '+isSubmitted +isDraft +isPublished +createdBy +updatedBy';

src/database/repository/KeystoreRepo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Keystore, { IKeystore } from '../model/Keystore';
22
import { Types } from 'mongoose';
33
import { IUser } from '../model/User';
44

5-
export default class KeystoreRepository {
5+
export default class KeystoreRepo {
66

77
public static findforKey(client: IUser, key: string): Promise<IKeystore> {
88
return Keystore.findOne({ client: client, primaryKey: key, status: true }).exec();

src/database/repository/RoleRepo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Role, { IRole } from '../model/Role';
22

3-
export default class RoleRepository {
3+
export default class RoleRepo {
44

55
public static findByCode(code: string): Promise<IRole> {
66
return Role.findOne({ code: code, status: true }).lean<IRole>().exec();

src/database/repository/UserRepo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Types } from 'mongoose';
55
import KeystoreRepo from './KeystoreRepo';
66
import { IKeystore } from '../model/Keystore';
77

8-
export default class UserRepository {
8+
export default class UserRepo {
99

1010
// contains critical information of the user
1111
public static findById(id: Types.ObjectId): Promise<IUser> {

0 commit comments

Comments
 (0)