diff --git a/back/services/env.ts b/back/services/env.ts index 73db2491..c85bbdcd 100644 --- a/back/services/env.ts +++ b/back/services/env.ts @@ -103,7 +103,7 @@ export default class EnvService { let position = initPosition; for (const env of envs) { position = position - stepPosition; - await this.updateDb({ ...env, position }); + await this.updateDb({ id: env.id, position }); } } }