1
This commit is contained in:
parent
ced3b56f2b
commit
1633d169ce
@ -58,7 +58,7 @@ class PullDbEvent extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async pullEvent() {
|
async pullEvent() {
|
||||||
const logHead = this.getInstanceName() + ' pullDbEvent: ';
|
const logHead = this.genLogHead(' pullDbEvent: ');
|
||||||
try {
|
try {
|
||||||
const startIdx = this.getStartIdx();
|
const startIdx = this.getStartIdx();
|
||||||
const endIdx = this.getEndIdx();
|
const endIdx = this.getEndIdx();
|
||||||
@ -135,7 +135,7 @@ class PullDbEvent extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getLastIdx() {
|
async getLastIdx() {
|
||||||
const logHead = this.getInstanceName() + ' getLastIdx: ';
|
const logHead = this.genLogHead(' getLastIdx: ');
|
||||||
while (true) {
|
while (true) {
|
||||||
const {err, row} = await this.conn.ormSelectOne(
|
const {err, row} = await this.conn.ormSelectOne(
|
||||||
't_dbpull_last_idx',
|
't_dbpull_last_idx',
|
||||||
@ -159,7 +159,7 @@ class PullDbEvent extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async saveLastIdx(lastIdx) {
|
async saveLastIdx(lastIdx) {
|
||||||
const logHead = this.getInstanceName() + ' saveLastIdx: ';
|
const logHead = this.genLogHead(' saveLastIdx: ');
|
||||||
while (true) {
|
while (true) {
|
||||||
const {err} = await this.conn.upsert(
|
const {err} = await this.conn.upsert(
|
||||||
't_dbpull_last_idx',
|
't_dbpull_last_idx',
|
||||||
@ -191,7 +191,7 @@ class PullDbEvent extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async saveToDb(row) {
|
async saveToDb(row) {
|
||||||
const logHead = this.getInstanceName() + ' saveToDb: ';
|
const logHead = this.genLogHead(' saveToDb: ');
|
||||||
while (true) {
|
while (true) {
|
||||||
const {err} = await this.conn.upsert(
|
const {err} = await this.conn.upsert(
|
||||||
this.getTableName(),
|
this.getTableName(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user