Skip to content

Commit

Permalink
Fix update of single relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassnielsen committed Nov 15, 2024
1 parent 00990d8 commit 040d1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/api/rest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ class RequestHandler extends APIHandlerBase {
return this.makeError('invalidRelationData');
}
updatePayload.data[key] = {
set: {
connect: {
[this.makePrismaIdKey(relationInfo.idFields)]: data.data.id,
},
};
Expand Down

0 comments on commit 040d1bd

Please sign in to comment.