aboutsummaryrefslogtreecommitdiff
path: root/Database/Database.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Database/Database.cs')
-rw-r--r--Database/Database.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Database/Database.cs b/Database/Database.cs
index d3ccb2e..6c3511c 100644
--- a/Database/Database.cs
+++ b/Database/Database.cs
@@ -28,7 +28,7 @@ namespace Database {
await Articles.AddRangeAsync(articles);
return await SaveChangesAsync();
} catch (Microsoft.EntityFrameworkCore.DbUpdateException) {
- return -1; // duplicate title id's
+ return 0; // duplicate title id's
}
}