feat: aveiro stuff
This commit is contained in:
parent
82bef35754
commit
733cd670d7
3 changed files with 6 additions and 4 deletions
|
|
@ -51,7 +51,7 @@ const searchPathWrapper = (t, cb) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const pgp = Pgp({
|
const pgp = Pgp({
|
||||||
pgNative: true,
|
//pgNative: true,
|
||||||
schema: 'ERROR_SCHEMA',
|
schema: 'ERROR_SCHEMA',
|
||||||
extend (obj, dbContext) {
|
extend (obj, dbContext) {
|
||||||
obj.__taskEx = function (cb, throwOnError = true) {
|
obj.__taskEx = function (cb, throwOnError = true) {
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,7 @@ type PhysicalCassette {
|
||||||
|
|
||||||
type PhysicalStacker {
|
type PhysicalStacker {
|
||||||
name: String!
|
name: String!
|
||||||
|
number: Int!
|
||||||
denomination: Int!
|
denomination: Int!
|
||||||
count: Int!
|
count: Int!
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -175,6 +175,7 @@ function plugins (settings, deviceId) {
|
||||||
const computedStackers = []
|
const computedStackers = []
|
||||||
_.forEach(it => {
|
_.forEach(it => {
|
||||||
computedStackers.push({
|
computedStackers.push({
|
||||||
|
number: stackers[it].number,
|
||||||
name: stackers[it].name,
|
name: stackers[it].name,
|
||||||
denomination: stackers[it].denomination,
|
denomination: stackers[it].denomination,
|
||||||
count: counts[it]
|
count: counts[it]
|
||||||
|
|
@ -255,11 +256,13 @@ function plugins (settings, deviceId) {
|
||||||
const stackers = []
|
const stackers = []
|
||||||
_.forEach(it => {
|
_.forEach(it => {
|
||||||
stackers.push({
|
stackers.push({
|
||||||
|
number: 1 + it * 2,
|
||||||
name: `stacker${it + 1}f`,
|
name: `stacker${it + 1}f`,
|
||||||
denomination: parseInt(denominations[it][0], 10),
|
denomination: parseInt(denominations[it][0], 10),
|
||||||
count: parseInt(counts[it][0], 10)
|
count: parseInt(counts[it][0], 10)
|
||||||
})
|
})
|
||||||
stackers.push({
|
stackers.push({
|
||||||
|
number: 2 + it * 2,
|
||||||
name: `stacker${it + 1}r`,
|
name: `stacker${it + 1}r`,
|
||||||
denomination: parseInt(denominations[it][1], 10),
|
denomination: parseInt(denominations[it][1], 10),
|
||||||
count: parseInt(counts[it][1], 10)
|
count: parseInt(counts[it][1], 10)
|
||||||
|
|
@ -958,9 +961,7 @@ function plugins (settings, deviceId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPhoneCode (phone) {
|
function getPhoneCode (phone) {
|
||||||
const notifications = configManager.getNotifications(settings.config)
|
const code = settings.config.notifications_thirdParty_sms === 'mock-sms'
|
||||||
|
|
||||||
const code = notifications.thirdParty_sms === 'mock-sms'
|
|
||||||
? '123'
|
? '123'
|
||||||
: randomCode()
|
: randomCode()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue