Merge pull request #1584 from lamassu/feat/aveiro-stuff
feat: final aveiro changes
This commit is contained in:
commit
4cab26dc83
2 changed files with 5 additions and 3 deletions
|
|
@ -174,6 +174,7 @@ type PhysicalCassette {
|
|||
|
||||
type PhysicalStacker {
|
||||
name: String!
|
||||
number: Int!
|
||||
denomination: Int!
|
||||
count: Int!
|
||||
}
|
||||
|
|
|
|||
|
|
@ -175,6 +175,7 @@ function plugins (settings, deviceId) {
|
|||
const computedStackers = []
|
||||
_.forEach(it => {
|
||||
computedStackers.push({
|
||||
number: stackers[it].number,
|
||||
name: stackers[it].name,
|
||||
denomination: stackers[it].denomination,
|
||||
count: counts[it]
|
||||
|
|
@ -255,11 +256,13 @@ function plugins (settings, deviceId) {
|
|||
const stackers = []
|
||||
_.forEach(it => {
|
||||
stackers.push({
|
||||
number: 1 + it * 2,
|
||||
name: `stacker${it + 1}f`,
|
||||
denomination: parseInt(denominations[it][0], 10),
|
||||
count: parseInt(counts[it][0], 10)
|
||||
})
|
||||
stackers.push({
|
||||
number: 2 + it * 2,
|
||||
name: `stacker${it + 1}r`,
|
||||
denomination: parseInt(denominations[it][1], 10),
|
||||
count: parseInt(counts[it][1], 10)
|
||||
|
|
@ -958,9 +961,7 @@ function plugins (settings, deviceId) {
|
|||
}
|
||||
|
||||
function getPhoneCode (phone) {
|
||||
const notifications = configManager.getNotifications(settings.config)
|
||||
|
||||
const code = notifications.thirdParty_sms === 'mock-sms'
|
||||
const code = settings.config.notifications_thirdParty_sms === 'mock-sms'
|
||||
? '123'
|
||||
: randomCode()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue