mirror of
https://github.com/zyphlar/doorlock.git
synced 2024-04-03 21:36:03 +00:00
Start fleshing out card update code.
- Use node config, - Add logger
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
const ENV = process.env.NODE_ENV || 'development'
|
||||
const DOOR_OPEN_DELAY = ENV === 'test' ? 1 : 6000 // in milliseconds
|
||||
|
||||
module.exports = {
|
||||
DOOR_OPEN_DELAY,
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
env: 'ENV',
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
cardApi: 'https://chimera.cobot.me/api/check_in_tokens',
|
||||
env: 'development',
|
||||
openDelay: 6000,
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
env: 'test',
|
||||
openDelay: 1,
|
||||
}
|
||||
Reference in New Issue
Block a user