Skip to content

Commit aa3053b

Browse files
committed
Fix inserting otherLocations on Project
It is the only place in the app where we have otherLocations -> otherLocationIds So I'm just manually remapping.
1 parent ef77b9f commit aa3053b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/project/project.edgedb.repository.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ export class ProjectEdgeDBRepository
6565
}
6666

6767
async create(input: CreateProject) {
68-
const { type, sensitivity, ...props } = input;
68+
const { type, sensitivity, otherLocationIds, ...props } = input;
6969
return await this.concretes[input.type].create({
7070
...props,
7171
ownSensitivity: sensitivity,
72+
otherLocations: otherLocationIds,
7273
});
7374
}
7475

0 commit comments

Comments
 (0)