Delete users not in the user_list response

pull/14/head
Sam Bosley 13 years ago
parent 278480895f
commit 8289146d8d

@ -795,6 +795,9 @@ public final class ActFmSyncService {
actFmDataService.saveUserData(userObject); actFmDataService.saveUserData(userObject);
} }
Long[] idsArray = ids.toArray(new Long[ids.size()]);
actFmDataService.userDao.deleteWhere(Criterion.not(User.REMOTE_ID.in(idsArray)));
return result.optInt("time", 0); return result.optInt("time", 0);
} }

Loading…
Cancel
Save