mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
sync clinets
This commit is contained in:
@@ -15,7 +15,11 @@ export class AddressSettingsService {
|
||||
}
|
||||
|
||||
public async getSettings(address: string) {
|
||||
return await this.addressSettingsRepository.findOne({ where: { address } });
|
||||
const settings = await this.addressSettingsRepository.findOne({ where: { address } });
|
||||
if (settings == null) {
|
||||
return await this.createNew(address);
|
||||
}
|
||||
return settings;
|
||||
}
|
||||
|
||||
public async updateBestDifficulty(address: string, bestDifficulty: number) {
|
||||
|
||||
Reference in New Issue
Block a user