测试:演武台拍卖行测试
This commit is contained in:
@@ -130,7 +130,7 @@ export class AuctionHandler {
|
||||
}
|
||||
|
||||
async checkDividend(msg: {}, session: BackendSession) {
|
||||
const begin = todayGuildBegin();
|
||||
const begin = await todayGuildBegin();
|
||||
const guildCode = session.get('guildCode');
|
||||
if (!guildCode) return resResult(STATUS.GUILD_NOT_FOUND);
|
||||
const dividends = await DividendModel.findGuildDividendsByBegin(guildCode, begin);
|
||||
@@ -155,9 +155,9 @@ export class AuctionHandler {
|
||||
async myWatching(msg: {}, session: BackendSession) {
|
||||
const roleId = session.get('roleId');
|
||||
const serverId = session.get('serverId');
|
||||
const begin = todayGuildBegin();
|
||||
const begin = await todayGuildBegin();
|
||||
const lots = await LotModel.watchingLotsByBegin(serverId, roleId, begin);
|
||||
const stage = auctionStage();
|
||||
const stage = await auctionStage();
|
||||
return resResult(STATUS.SUCCESS, { lots: stage === AUCTION_STAGE.END ? [] : lots });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user