renaming the schema

This commit is contained in:
Kfir Dayan 2023-06-09 19:06:16 +03:00
parent 2a4acd1277
commit 5ed21e9356
3 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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) {