Fix bug where sync limit larger than batch size was ignored
Fix bug where sync limit larger than batch size was ignored

The session list was being reduced by 30 each time the batch size was reached, therefore, if there were not enough sessions, the sync limit would not be reached before the session list was exhausted. This commit fixes the looping logic to ensure the sync limit is reached correctly.

culturecode/stagehand