mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(electron): fail closed on unknown performance completions
This commit is contained in:
1 parent
f9e71a6d8d
commit
0579d253c4
5 files changed
+222
-6
No files matched your search
@@ -16,7 +16,10 @@ export const PlaylistActions = createActionGroup({
|
||||
'Remove Playlist': props<{ playlistId: string }>(),
|
||||
'Update Playlist Meta': props<{ playlist: PlaylistMeta }>(),
|
||||
'Update Playlist': props<{
|
||||
/** Instrumentation-only; never persisted or sent to main/worker IPC. */
|
||||
/**
|
||||
* Instrumentation-only; stripped before the DB invoke.
|
||||
* Never enters the DB worker payload or persisted playlist data.
|
||||
*/
|
||||
operationId?: string;
|
||||
playlist: Playlist;
|
||||
playlistId: string;
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { of } from 'rxjs';
|
||||
import { PlaylistActions } from './actions';
|
||||
import { persistPlaylistUpdate } from './playlist-update.effect-handler';
|
||||
|
||||
describe('PlaylistEffects updatePlaylist', () => {
|
||||
describe('persistPlaylistUpdate', () => {
|
||||
it('forwards the refresh operation ID to playlist persistence', () => {
|
||||
const playlistsService = {
|
||||
updatePlaylist: jest.fn(() => of(undefined)),
|
||||
@@ -686,7 +686,10 @@ export interface ElectronBridgeApi {
|
||||
) => Promise<ElectronBridgePlaylistRow | null>;
|
||||
dbUpsertAppPlaylist: (
|
||||
playlist: Playlist,
|
||||
/** Instrumentation-only; never persisted or sent to main/worker IPC. */
|
||||
/**
|
||||
* Instrumentation-only; stripped before the DB invoke.
|
||||
* Never enters the DB worker payload or persisted playlist data.
|
||||
*/
|
||||
operationId?: string
|
||||
) => Promise<ElectronBridgeResult>;
|
||||
dbUpsertAppPlaylists: (
|
||||
@@ -696,7 +699,10 @@ export interface ElectronBridgeApi {
|
||||
dbGetAppPlaylistMetas: () => Promise<Playlist[]>;
|
||||
dbGetAppPlaylist: (
|
||||
playlistId: string,
|
||||
/** Instrumentation-only; never persisted or sent to main/worker IPC. */
|
||||
/**
|
||||
* Instrumentation-only; stripped before the DB invoke.
|
||||
* Never enters the DB worker payload or persisted playlist data.
|
||||
*/
|
||||
operationId?: string
|
||||
) => Promise<Playlist | null>;
|
||||
dbGetAppPlaylistFavoriteChannels: (
|
||||
|
||||
Reference in new issue
Block a user