From 5ed21e9356a955ad4fc43fcb5f6da9371a73472a Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Fri, 9 Jun 2023 19:06:16 +0300 Subject: [PATCH] renaming the schema --- src/controllers/ProductController.ts | 2 +- src/controllers/UserController.ts | 2 +- src/{models => mongoose}/Schema.ts | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{models => mongoose}/Schema.ts (100%) diff --git a/src/controllers/ProductController.ts b/src/controllers/ProductController.ts index fc9e3a2..870afdb 100644 --- a/src/controllers/ProductController.ts +++ b/src/controllers/ProductController.ts @@ -1,5 +1,5 @@ import { Request, Response } from 'express'; -import { Product, IProduct } from '../models/Schema'; +import { Product, IProduct } from '../mongoose/Schema'; export async function createProduct(req: Request, res: Response) { try { diff --git a/src/controllers/UserController.ts b/src/controllers/UserController.ts index 7d91158..35c0ec9 100644 --- a/src/controllers/UserController.ts +++ b/src/controllers/UserController.ts @@ -1,7 +1,7 @@ import { Request, Response } from 'express'; import bcrypt from 'bcryptjs'; import jwt from 'jsonwebtoken'; -import { User, IUser } from '../models/Schema'; +import { User, IUser } from '../mongoose/Schema'; import { clearJwtCookie, setJwtCookie } from '../middlewares/checkAuth'; export async function createUser(req: Request, res: Response) { diff --git a/src/models/Schema.ts b/src/mongoose/Schema.ts similarity index 100% rename from src/models/Schema.ts rename to src/mongoose/Schema.ts