warn on re-index - fix hash indexing state issue - cleanup ui mining
This commit is contained in:
1 parent
582b03ee4e
commit
abb96ca064
11 files changed
+45
-53
No files matched your search
@@ -84,10 +84,11 @@ class HashratesRepository {
|
||||
return rows;
|
||||
}
|
||||
|
||||
public async $setLatestRunTimestamp() {
|
||||
public async $setLatestRunTimestamp(val: any = null) {
|
||||
const connection = await DB.pool.getConnection();
|
||||
const query = `UPDATE state SET number = ? WHERE name = 'last_hashrates_indexing'`;
|
||||
await connection.query<any>(query, [Math.round(new Date().getTime() / 1000)]);
|
||||
|
||||
await connection.query<any>(query, (val === null) ? [Math.round(new Date().getTime() / 1000)] : [val]);
|
||||
connection.release();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user