asdf
This commit is contained in:
parent
0efca3b0b5
commit
75b9958b97
@ -45,7 +45,7 @@ namespace NeDvachAPI
|
||||
using ( var command = new NpgsqlCommand(@"
|
||||
SELECT * FROM
|
||||
(
|
||||
SELECT post_id, post
|
||||
SELECT post_id, post, post_timestamp
|
||||
FROM dvach
|
||||
ORDER BY post_id DESC
|
||||
) subquery
|
||||
@ -64,9 +64,10 @@ namespace NeDvachAPI
|
||||
//);
|
||||
Post receivedPost = new()
|
||||
{
|
||||
Date = DateTime.Now,
|
||||
Id = reader.GetInt32(0),
|
||||
Text = reader.GetString(1)
|
||||
// Date = DateTime.Now,
|
||||
Id = reader.GetInt32(0),
|
||||
Text = reader.GetString(1),
|
||||
Date = reader.GetString(2)
|
||||
};
|
||||
posts.Add(receivedPost);
|
||||
//posts[postCount] = receivedPost;
|
||||
|
Reference in New Issue
Block a user