Finish copy trading

This commit is contained in:
2025-11-20 14:46:54 +07:00
parent ff2df2d9ac
commit 190a9cf12d
13 changed files with 96 additions and 222 deletions

View File

@@ -194,6 +194,7 @@ public class PostgreSqlBotRepository : IBotRepository
var query = _context.Bots
.AsNoTracking()
.Include(m => m.User)
.Include(m => m.MasterBotUser)
.AsQueryable();
// Apply filters

View File

@@ -754,7 +754,8 @@ public static class PostgreSqlMappers
Fees = entity.Fees,
LongPositionCount = entity.LongPositionCount,
ShortPositionCount = entity.ShortPositionCount,
MasterBotUserId = entity.MasterBotUserId
MasterBotUserId = entity.MasterBotUserId,
MasterBotUser = entity.MasterBotUser != null ? Map(entity.MasterBotUser) : null
};
return bot;