feat: aveiro stuff

This commit is contained in:
Rafael Taranto 2023-08-24 17:10:15 +01:00
parent 82bef35754
commit 733cd670d7
3 changed files with 6 additions and 4 deletions

View file

@ -51,7 +51,7 @@ const searchPathWrapper = (t, cb) => {
}
const pgp = Pgp({
pgNative: true,
//pgNative: true,
schema: 'ERROR_SCHEMA',
extend (obj, dbContext) {
obj.__taskEx = function (cb, throwOnError = true) {

View file

@ -174,6 +174,7 @@ type PhysicalCassette {
type PhysicalStacker {
name: String!
number: Int!
denomination: Int!
count: Int!
}

View file

@ -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()