fix login
This commit is contained in:
parent
65ae7da6e6
commit
8e2f274668
|
|
@ -115,6 +115,6 @@ export const getImagesWorking = async (values: (IBid | IWebBid) & { type: string
|
|||
|
||||
return data;
|
||||
} catch (error) {
|
||||
handleError(error);
|
||||
console.log('%csrc/apis/bid.ts:118 error', 'color: #007acc;', error);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -20,11 +20,7 @@ export default function ShowHistoriesBidPicklesApiModal({ data, onUpdated, ...pr
|
|||
<Table.Tr key={index}>
|
||||
<Table.Td>{element['bidderAnonName']}</Table.Td>
|
||||
<Table.Td>{element['actualBid']}</Table.Td>
|
||||
<<<<<<< HEAD
|
||||
<Table.Td>{formatTime(new Date(element['bidTimeInMilliSeconds']).toUTCString())}</Table.Td>
|
||||
=======
|
||||
<Table.Td>{formatTime(new Date(element['bidTimeInMilliSeconds']).toUTCString(), 'HH:mm:ss DD/MM/YYYY')}</Table.Td>
|
||||
>>>>>>> 26b10a7 (pickxel and fix login)
|
||||
</Table.Tr>
|
||||
));
|
||||
}, [histories]);
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@
|
|||
import { clsx, type ClassValue } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import moment from "moment";
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
import { IWebBid } from "../system/type";
|
||||
>>>>>>> 26b10a7 (pickxel and fix login)
|
||||
export function cn(...args: ClassValue[]) {
|
||||
return twMerge(clsx(args));
|
||||
}
|
||||
|
|
@ -154,8 +151,6 @@ export function stringToColor(str: string): string {
|
|||
const hash = hashStringToInt(str);
|
||||
const index = hash % colorPalette.length;
|
||||
return colorPalette[index];
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
}
|
||||
|
||||
export function findEarlyLoginTime(webBid: IWebBid): string | null {
|
||||
|
|
@ -180,5 +175,4 @@ export function findEarlyLoginTime(webBid: IWebBid): string | null {
|
|||
closeTime.setSeconds(closeTime.getSeconds() - (webBid.early_login_seconds || 0));
|
||||
|
||||
return closeTime.toISOString();
|
||||
>>>>>>> 26b10a7 (pickxel and fix login)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@ export class GraysApi {
|
|||
|
||||
switch(bid.web_bid.origin_url){
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
// GRAYS
|
||||
>>>>>>> 26b10a7 (pickxel and fix login)
|
||||
case 'https://www.grays.com': {
|
||||
const response = await axios({
|
||||
url: `https://www.grays.com/api/LotInfo/GetBiddingHistory?lotId=${lot_id}¤cyCode=AUD`,
|
||||
|
|
@ -36,11 +33,8 @@ export class GraysApi {
|
|||
|
||||
return AppResponse.toResponse([])
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
// PICKLES
|
||||
>>>>>>> 26b10a7 (pickxel and fix login)
|
||||
case 'https://www.pickles.com.au': {
|
||||
|
||||
const response = await axios({
|
||||
|
|
@ -48,11 +42,7 @@ export class GraysApi {
|
|||
});
|
||||
|
||||
if (response.data) {
|
||||
<<<<<<< HEAD
|
||||
return AppResponse.toResponse(response.data);
|
||||
=======
|
||||
return AppResponse.toResponse(response.data.Bids);
|
||||
>>>>>>> 26b10a7 (pickxel and fix login)
|
||||
}
|
||||
|
||||
return AppResponse.toResponse([])
|
||||
|
|
|
|||
|
|
@ -79,14 +79,14 @@ export class BidsController {
|
|||
@Post('test')
|
||||
async test(@Body('code') code: string) {
|
||||
const webBid = await this.webBidService.webBidRepo.findOne({
|
||||
where: { id: 4 },
|
||||
// where: { id: 1 },
|
||||
// where: { id: 4 },
|
||||
where: { id: 1 },
|
||||
});
|
||||
|
||||
this.eventEmitter.emit(Event.verifyCode(webBid), {
|
||||
code,
|
||||
name: 'LAWSONS',
|
||||
// name: 'LANGTONS',
|
||||
// name: 'LAWSONS',
|
||||
name: 'LANGTONS',
|
||||
web_bid: plainToClass(WebBid, webBid),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue