diff --git a/src/template/src/entities/mod.hbs b/src/template/src/entities/mod.hbs index 50cc60b..35b728f 100644 --- a/src/template/src/entities/mod.hbs +++ b/src/template/src/entities/mod.hbs @@ -1,5 +1,5 @@ {{#if is_sqlx}} -pub mod user; +pub mod users; {{/if}} {{#if is_sea_orm}} //! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.3 diff --git a/src/template/src/services/user.hbs b/src/template/src/services/user.hbs index 1b5714a..a2fafde 100644 --- a/src/template/src/services/user.hbs +++ b/src/template/src/services/user.hbs @@ -8,7 +8,7 @@ use crate::{ UserUpdateRequest, }, middleware::jwt::get_token, - entities::user::User, + entities::users::User, utils::rand_utils, }; {{/if}}