Skip to content

Commit 107b570

Browse files
fix issue #3
1 parent 3608aa3 commit 107b570

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.UpdatedAt.HasValue)
127+
if (item.HasId)
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 && item.UpdatedAt.HasValue)
159+
if (item.HasId)
160160
{
161161
#if OFFLINE_SYNC_ENABLED
162162
await updateAsync (table, item, where, false);

0 commit comments

Comments
 (0)