Skip to content

Commit

Permalink
api: Fix getModelsSteps query
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Jan 26, 2025
1 parent 20737f7 commit f59f715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api/services/edgecreator/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { prismaClient as prismaDm } from "~prisma-schemas/schemas/dm/client";
import { prismaClient as prismaEdgeCreator } from "~prisma-schemas/schemas/edgecreator/client";

import type Events from "../types";
import { Prisma } from "~prisma-schemas/client_edgecreator";

export default (socket: Socket<Events>) => {
socket.on("getModelsSteps", async (modelIds, callback) => {
Expand All @@ -27,7 +28,7 @@ export default (socket: Socket<Events>) => {
'}') AS options
from tranches_en_cours_valeurs optionValue
inner join tranches_en_cours_modeles model on optionValue.ID_Modele = model.ID
where model.ID IN (${modelIds})
where model.ID IN (${Prisma.join(modelIds)})
group by model.numero, optionValue.ordre
order by optionValue.ordre
`
Expand Down

0 comments on commit f59f715

Please sign in to comment.