mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-31 01:42:27 +00:00
Merge pull request #799 from PR0M3TH3AN/codex/add-watchhistory-api-module-and-refactor
Refactor watch history logic into dedicated module
This commit is contained in:
3 files changed
+2846
-2979
No files matched your search
+621
-2977
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -5811,7 +5811,8 @@ export class ProfileModalController {
|
||||
}
|
||||
|
||||
async hydrateActiveWalletSettings(pubkey) {
|
||||
const hydrate = this.services.nwcSettings?.hydrateNwcSettingsForPubkey;
|
||||
const service = this.services.nwcSettings;
|
||||
const hydrate = service?.hydrateNwcSettingsForPubkey;
|
||||
if (typeof hydrate !== "function") {
|
||||
return null;
|
||||
}
|
||||
@@ -5824,7 +5825,7 @@ export class ProfileModalController {
|
||||
}
|
||||
|
||||
try {
|
||||
return await hydrate(normalized);
|
||||
return await hydrate.call(service, normalized);
|
||||
} catch (error) {
|
||||
userLogger.warn(
|
||||
`[ProfileModalController] Failed to hydrate wallet settings for ${normalized}:`,
|
||||
|
||||
Reference in new issue
Block a user