setting default value for history
This commit is contained in:
1 parent
1a60bc0c92
commit
0cf7f03192
1 file changed
+1
@@ -17,6 +17,7 @@ const resolve = (parent, { fbSlug, tradingSystem }) => {
|
||||
tradingSystem = defaultTradingSystem;
|
||||
}
|
||||
tradingSystem.fbSlug = fbSlug;
|
||||
tradingSystem.history = [];
|
||||
const newTradingSystem = new TradingSystem(tradingSystem);
|
||||
|
||||
return new Promise((res, rej) => {
|
||||
|
||||
Reference in new issue
Block a user