Harden media and follow-up handling
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using MongoDB.Driver;
|
||||
using MongoDB.Bson;
|
||||
using QuestionsApi.Models;
|
||||
|
||||
namespace QuestionsApi.Services;
|
||||
@@ -102,6 +103,7 @@ public class QuestionStore
|
||||
}
|
||||
else
|
||||
{
|
||||
question.Id = ObjectId.GenerateNewId().ToString();
|
||||
question.CreatedUtc = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user