mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-28 08:22:24 +00:00
Adjust view recording response
This commit is contained in:
1 parent
2bb49dd404
commit
eae0ea47b0
1 file changed
+2
-13
+2
-13
@@ -4516,12 +4516,7 @@ class NostrClient {
|
||||
async recordVideoView(videoPointer, options = {}) {
|
||||
const pointer = normalizePointerInput(videoPointer);
|
||||
if (!pointer) {
|
||||
return {
|
||||
ok: false,
|
||||
error: "invalid-pointer",
|
||||
view: { ok: false, error: "invalid-pointer" },
|
||||
history: { ok: false, error: "invalid-pointer" },
|
||||
};
|
||||
return { ok: false, error: "invalid-pointer" };
|
||||
}
|
||||
|
||||
const view = await this.publishViewEvent(pointer, options);
|
||||
@@ -4542,13 +4537,7 @@ class NostrClient {
|
||||
}
|
||||
}
|
||||
|
||||
const history = await this.updateWatchHistoryList(pointer);
|
||||
|
||||
return {
|
||||
ok: view.ok && history.ok,
|
||||
view,
|
||||
history,
|
||||
};
|
||||
return view;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user