aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/DataManager.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-06 18:12:51 +0800
committercrupest <crupest@outlook.com>2020-03-06 18:12:51 +0800
commit81218733d494452e04a1ab84fae242d0bba08092 (patch)
tree4d320ffd64854cc959ebc7b763f2766505198b13 /Timeline/Services/DataManager.cs
parenta88ce6495185e7e63c5c1362c7e3f8660b89333d (diff)
downloadtimeline-81218733d494452e04a1ab84fae242d0bba08092.tar.gz
timeline-81218733d494452e04a1ab84fae242d0bba08092.tar.bz2
timeline-81218733d494452e04a1ab84fae242d0bba08092.zip
...
Diffstat (limited to 'Timeline/Services/DataManager.cs')
-rw-r--r--Timeline/Services/DataManager.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Timeline/Services/DataManager.cs b/Timeline/Services/DataManager.cs
index d6b8b6a4..d447b0d5 100644
--- a/Timeline/Services/DataManager.cs
+++ b/Timeline/Services/DataManager.cs
@@ -76,13 +76,12 @@ namespace Timeline.Services
Ref = 1
};
_database.Data.Add(entity);
- await _database.SaveChangesAsync();
}
else
{
entity.Ref += 1;
- await _database.SaveChangesAsync();
}
+ await _database.SaveChangesAsync();
return tag;
}