Figured out what the error was. I had to change the following:
entity.related = [
{
id: `${event.result.id}`,
__type: "plugin::users-permissions.user",
__pivot: { field: "profile_picture" }
},
];
Figured out what the error was. I had to change the following:
entity.related = [
{
id: `${event.result.id}`,
__type: "plugin::users-permissions.user",
__pivot: { field: "profile_picture" }
},
];