|
|
@@ -27,7 +27,7 @@ export class StockDataService extends GenericCrudService<StockData> {
|
|
|
const existingData = await this.repository
|
|
|
.createQueryBuilder('stock')
|
|
|
.where('stock.code = :code', { code })
|
|
|
- .andWhere('stock.updatedAt >= :today', { today: `${today} 00:00:00` })
|
|
|
+ .andWhere('stock.updated_at >= :today', { today: `${today} 00:00:00` })
|
|
|
.getOne();
|
|
|
|
|
|
if (existingData) {
|
|
|
@@ -68,7 +68,7 @@ export class StockDataService extends GenericCrudService<StockData> {
|
|
|
.insert()
|
|
|
.values(stockData)
|
|
|
.orUpdate(
|
|
|
- ['data', 'updatedAt'],
|
|
|
+ ['data', 'updated_at'],
|
|
|
['code']
|
|
|
)
|
|
|
.execute();
|