This commit is contained in:
parent
a59807e7fc
commit
db282cf74b
|
@ -47,8 +47,7 @@ module.exports = Self => {
|
||||||
verb: 'POST'
|
verb: 'POST'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Cambiar a forma corta: ejemplo: ctx.appName
|
Self.upload = async(ctx, options) => {
|
||||||
Self.upload = async(ctx, appName, toVersion, branch, fromVersion, description, unlock, options) => {
|
|
||||||
const models = Self.app.models;
|
const models = Self.app.models;
|
||||||
const myOptions = {};
|
const myOptions = {};
|
||||||
const $t = ctx.req.__; // $translate
|
const $t = ctx.req.__; // $translate
|
||||||
|
@ -56,6 +55,12 @@ module.exports = Self => {
|
||||||
const AccessContainer = models.AccessContainer;
|
const AccessContainer = models.AccessContainer;
|
||||||
const fileOptions = {};
|
const fileOptions = {};
|
||||||
let tx;
|
let tx;
|
||||||
|
const appName = ctx.args.appName;
|
||||||
|
const toVersion = ctx.args.toVersion;
|
||||||
|
const branch = ctx.args.branch;
|
||||||
|
const fromVersion = ctx.args.fromVersion;
|
||||||
|
let description = ctx.args.description;
|
||||||
|
const unlock = ctx.args.unlock;
|
||||||
|
|
||||||
if (typeof options == 'object')
|
if (typeof options == 'object')
|
||||||
Object.assign(myOptions, options);
|
Object.assign(myOptions, options);
|
||||||
|
|
Loading…
Reference in New Issue