|
@ -103,7 +103,7 @@ module.exports = function (app, router, opts) { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
findOne && findOne.resourceConsumptions.map(s => { |
|
|
findOne && findOne.resourceConsumptions.map(s => { |
|
|
if (!tokens && s.token) { |
|
|
if (token.find(x => x == s.token)) { |
|
|
tokens = s.token |
|
|
tokens = s.token |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -177,7 +177,7 @@ module.exports = function (app, router, opts) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function release (apps, opts) { |
|
|
async function release(apps, opts) { |
|
|
|
|
|
|
|
|
const models = apps.fs.dc.models; |
|
|
const models = apps.fs.dc.models; |
|
|
|
|
|
|
|
@ -199,11 +199,12 @@ module.exports = function (app, router, opts) { |
|
|
order: [["id", "desc"]], |
|
|
order: [["id", "desc"]], |
|
|
include: [{ |
|
|
include: [{ |
|
|
model: models.ResourceConsumption, |
|
|
model: models.ResourceConsumption, |
|
|
|
|
|
|
|
|
}], |
|
|
}], |
|
|
distinct: true |
|
|
distinct: true |
|
|
}); |
|
|
}); |
|
|
findOne && findOne.resourceConsumptions.map(s => { |
|
|
findOne && findOne.resourceConsumptions.map(s => { |
|
|
if (!tokens && s.token) { |
|
|
if (token.find(x => x == s.token)) { |
|
|
tokens = s.token |
|
|
tokens = s.token |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|