diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-11 12:10:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-11 12:10:00 +0300 |
commit | 564919dfc6c6b352163d4c6dc01827a5f12ffc88 (patch) | |
tree | 9e91b8dde12a3054fffc513c6e0ab0400a039a88 /app/models/packages | |
parent | 2000704b7a6cc9eb37dd597ed03567265eda9308 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/packages')
-rw-r--r-- | app/models/packages/package.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/packages/package.rb b/app/models/packages/package.rb index 010e1835520..4ea127fc222 100644 --- a/app/models/packages/package.rb +++ b/app/models/packages/package.rb @@ -324,7 +324,7 @@ class Packages::Package < ApplicationRecord return unless project return unless follows_npm_naming_convention? - if project.package_already_taken?(name, package_type: :npm) + if project.package_already_taken?(name, version, package_type: :npm) errors.add(:base, _('Package already exists')) end end |