mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
timezone
This commit is contained in:
@@ -35,15 +35,15 @@ export class AddressSettingsService {
|
||||
return await this.addressSettingsRepository.save({ address });
|
||||
}
|
||||
|
||||
public async addShares(address: string, shares: number) {
|
||||
return await this.addressSettingsRepository.createQueryBuilder()
|
||||
.update(AddressSettingsEntity)
|
||||
.set({
|
||||
shares: () => `"shares" + ${shares}` // Use the actual value of shares here
|
||||
})
|
||||
.where('address = :address', { address })
|
||||
.execute();
|
||||
}
|
||||
// public async addShares(address: string, shares: number) {
|
||||
// return await this.addressSettingsRepository.createQueryBuilder()
|
||||
// .update(AddressSettingsEntity)
|
||||
// .set({
|
||||
// shares: () => `"shares" + ${shares}` // Use the actual value of shares here
|
||||
// })
|
||||
// .where('address = :address', { address })
|
||||
// .execute();
|
||||
// }
|
||||
|
||||
public async resetBestDifficultyAndShares() {
|
||||
return await this.addressSettingsRepository.update({}, {
|
||||
|
||||
@@ -48,7 +48,7 @@ export class ClientService {
|
||||
}
|
||||
|
||||
const values = Object.entries(this.heartbeatBulkUpdate).map(([key, value]) => {
|
||||
return `('${value.id}', ${value.hashRate}, '${value.updatedAt.toISOString()}')`
|
||||
return `('${value.id}', ${value.hashRate}, '${value.updatedAt.toISOString().slice(0, -1)}')`
|
||||
}).join(',');
|
||||
|
||||
const query = `
|
||||
|
||||
Reference in New Issue
Block a user