Fixing access code validation
This commit is contained in:
1 parent
e1b8348da8
commit
519a5c680c
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@superalgos/operations-client",
|
||||
"version": "0.0.32",
|
||||
"version": "0.0.33",
|
||||
"description": "Superalgos Operations client-side web app",
|
||||
"main": "src/index.js",
|
||||
"dependencies": {
|
||||
|
||||
@@ -53,7 +53,7 @@ const botTypes = {
|
||||
}
|
||||
|
||||
const exchanges = {
|
||||
COSS: "COSS",
|
||||
// COSS: "COSS",
|
||||
Poloniex: "Poloniex"
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ const resolve = async (parent, { clone }, context) => {
|
||||
clone.active = true
|
||||
|
||||
// TODO Temporary Limitations on bot creation
|
||||
if (clone.accessCode !== undefined) {
|
||||
if (clone.accessCode !== undefined && clone.accessCode.length > 0) {
|
||||
if (clone.accessCode === process.env.ACCESS_CODE) {
|
||||
clone.balanceAssetA = Number(process.env.DEFAULT_BALANCE_ASSET_A)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user