Remove unused v2 code from /website/common/script (#8034)
* remove apiv2 behavior from ops * remove apiv2 behavior from fns
This commit is contained in:
committed by
Blade Barringer
parent
8f9ed6e377
commit
5f0c1687b5
@@ -111,9 +111,5 @@ module.exports = function unlock (user, req = {}, analytics) {
|
||||
|
||||
if (!alreadyOwns) response.push(i18n.t('unlocked', req.language));
|
||||
|
||||
if (req.v2 === true) {
|
||||
return response[0];
|
||||
} else {
|
||||
return response;
|
||||
}
|
||||
return response;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user