diff --git a/complex-elastic-beanstalk/worker/index.js b/complex-elastic-beanstalk/worker/index.js index ca56cdd..ddf319e 100644 --- a/complex-elastic-beanstalk/worker/index.js +++ b/complex-elastic-beanstalk/worker/index.js @@ -9,7 +9,7 @@ const redisClient = redis.createClient({ const sub = redisClient.duplicate(); function fib(index) { - if (index < 2) return 1; + if (index < 2) return index; return fib(index - 1) + fib(index - 2); }