Fix for actfm tags getting deleted on sync

pull/14/head
Tim Su 15 years ago
parent 94fd25098f
commit 665930b865

@ -486,9 +486,11 @@ public final class ActFmSyncService {
remoteIds.add(tagObject.getLong("id")); remoteIds.add(tagObject.getLong("id"));
} }
if(serverTime == 0) {
Long[] remoteIdArray = remoteIds.toArray(new Long[remoteIds.size()]); Long[] remoteIdArray = remoteIds.toArray(new Long[remoteIds.size()]);
tagDataService.deleteWhere(Criterion.not(TagData.REMOTE_ID.in(remoteIdArray))); tagDataService.deleteWhere(Criterion.not(TagData.REMOTE_ID.in(remoteIdArray)));
} }
}
/** /**
* Fetch tasks for the given tagData asynchronously * Fetch tasks for the given tagData asynchronously

Loading…
Cancel
Save