Skip to content

Commit 3608aa3

Browse files
Revert "fix issue #4"
This reverts commit 086402b.
1 parent 086402b commit 3608aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NomadCode.Azure/NomadCode.Azure/AzureClient/AzureClient_Save.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Task insertOrUpdateAsync<T> (IMobileServiceTable<T> table, T item)
124124
#endif
125125
where T : AzureEntity, new()
126126
{
127-
if (item.HasId)
127+
if (item.UpdatedAt.HasValue)
128128
{
129129
#if OFFLINE_SYNC_ENABLED
130130
return updateAsync (table, item, where, pull);
@@ -156,7 +156,7 @@ async Task insertOrUpdateAsync<T> (IMobileServiceTable<T> table, List<T> items)
156156
{
157157
foreach (var item in items)
158158
{
159-
if (item.HasId)
159+
if (item.HasId && item.UpdatedAt.HasValue)
160160
{
161161
#if OFFLINE_SYNC_ENABLED
162162
await updateAsync (table, item, where, false);

0 commit comments

Comments
 (0)