Skip to content

quantity field is removed from schema.prisma, but corresponding orders service are not updated. #5

@nipingbo

Description

@nipingbo

In your Commit 9f3ca0e.
You delete the "quantity" field. But coresponding files in orders folder are not updated.
E.g.

const ordersByQuantity = allOrders.sort((orderA, orderB) => orderA.quantity - orderB.quantity);

would you please check it?

I found it's hard to follow your repository to get the runable example.

E.g. In the users folder.
You define the user.interface as
export interface User {
id?: number;
name: string;
email: string;
createdAt: Date;
updatedAt: Date;
}

But in the schema.prisma file, there is no createdAt and updateAt field in the user model. Your user.service query the data from DB.
All these things can't be compatible.

Can you check your reposiorty and update a correct one?

Regards!
A Reader

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions