Merge pull request #4074 from phyzical/hotfix/4058

CORP API: Fix up param order for limitProductProduction to match docs
This commit is contained in:
hydroflame 2022-09-23 00:36:24 -03:00 committed by GitHub
commit 23c889bafd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -534,7 +534,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
},
limitProductProduction:
(ctx: NetscriptContext) =>
(_divisionName: unknown, _productName: unknown, _cityName: unknown, _qty: unknown): void => {
(_divisionName: unknown, _cityName: unknown, _productName: unknown, _qty: unknown): void => {
checkAccess(ctx, 7);
const divisionName = helpers.string(ctx, "divisionName", _divisionName);
const cityName = helpers.city(ctx, "cityName", _cityName);