db[model].update was called with a non-unique where (compound AND), causing a PrismaClientValidationError when updating dynamic organization roles. It ensures updates use a unique selector (e.g., where: { id }) and falls back to updateMany when the filter isn’t unique (refs #5929).