Skip to content

Commit

Permalink
many corrections after user feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgehl3n committed Nov 19, 2023
1 parent b673d75 commit 25b6283
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/controllers/InstitutionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Roles } from "../enums/Roles";
import UserRole from "../database/models/UserRole";
import InstitutionFilters from "../filters/InstitutionFilters";
import { Op } from "sequelize";
import User from "../database/models/User";

const _mapGalleryToData = (req: Request, images: Record<string, any>) => {
const publicImages = images.filter(
Expand Down Expand Up @@ -161,6 +162,11 @@ class InstitutionController {
include: [
'address',
'publicImages',
{
model: User,
as: 'userCreator',
attributes: ['name'],
},
],
attributes: {
exclude: [
Expand Down
2 changes: 1 addition & 1 deletion src/database/models/Animal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Animal.init(
allowNull: true,
},
weight: {
type: DataTypes.INTEGER,
type: DataTypes.FLOAT,
allowNull: true,
},
deathDate: {
Expand Down
1 change: 0 additions & 1 deletion src/services/AnimalPredictionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Animal from "../database/models/Animal";
import AnimalPrediction from "../database/models/AnimalPrediction";
import AnimalPredictionView from "../views/AnimalPredictionView";
import AnimalView from "../views/AnimalView";
import AnimalService from "./AnimalService";
import BaseService from "./BaseService";
import BreedService from "./BreedService";
class AnimalPredictionService extends BaseService<AnimalPrediction>{
Expand Down

0 comments on commit 25b6283

Please sign in to comment.