fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
RakVhalate 2022-11-02 01:55:21 +10:00
parent 3f580831a1
commit b2cf921b9a
2 changed files with 2 additions and 8 deletions

View File

@ -14,7 +14,7 @@ namespace NeDvachAPI.Controllers
//Post[] posts = DBchat.DbList();
List<Post> posts = DBchat.DbList();
string postsJson = JsonSerializer.Serialize(posts);
Console.WriteLine("Запрошен список постов.);
Console.WriteLine("Запрошен список постов");
return postsJson ;

View File

@ -65,17 +65,11 @@ namespace NeDvachAPI
//);
Post receivedPost = new()
{
<<<<<<< HEAD
Id = reader.GetInt32(0),
Text = reader.GetString(1),
Timestamp = reader.GetString(2),
ImgURL = (string)reader.GetString(3)
=======
//Date = DateTime.Now,
Id = reader.GetInt32(0),
Text = reader.GetString(1),
Timestamp = reader.GetString(2)
>>>>>>> 10b089091585b363d2cf227a688da611f5870b5d
};
posts.Add(receivedPost);
//posts[postCount] = receivedPost;