Skip to content

Commit 040d1bd

Browse files
Fix update of single relationship
1 parent 00990d8 commit 040d1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/server/src/api/rest/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ class RequestHandler extends APIHandlerBase {
959959
return this.makeError('invalidRelationData');
960960
}
961961
updatePayload.data[key] = {
962-
set: {
962+
connect: {
963963
[this.makePrismaIdKey(relationInfo.idFields)]: data.data.id,
964964
},
965965
};

0 commit comments

Comments
 (0)