"type ='athletic' and isfirstwin='t' and ( (usernameA = :username AND userscorea > userscoreb ) OR (usernameB = :username AND userscoreb > userscorea) ) and start_time > :start and start_time < :end",
{username,start:activity.start,end:activity.end},
)
.getCount()
).toString();
consttoday=moment().format('YYYY-MM-DD');
activity.today=(
awaitthis.mcdb
.getRepository(BattleHistory)
.createQueryBuilder()
.where(
"type ='athletic' and isfirstwin='t' and ( (usernameA = :username AND userscorea > userscoreb ) OR (usernameB = :username AND userscoreb > userscorea) ) and start_time > :start",