mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 19:46:16 -08:00
fix(stalker): reject replaced late edit targets
This commit is contained in:
1 parent
e4bee6da40
commit
fabffcc902
10 files changed
+102
-17
No files matched your search
+4
@@ -669,6 +669,10 @@ describe('PlaylistInfoComponent', () => {
|
||||
stalkerDeviceId2: 'STORED-DEVICE-2',
|
||||
stalkerSignature1: 'STORED-SIGNATURE-1',
|
||||
stalkerSignature2: 'STORED-SIGNATURE-2',
|
||||
}),
|
||||
expect.objectContaining({
|
||||
portalUrl: 'https://portal.example.com/c',
|
||||
stalkerSerialNumber: 'STORED-SERIAL',
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
+2
-1
@@ -413,7 +413,8 @@ export class PlaylistInfoComponent {
|
||||
) {
|
||||
const result =
|
||||
await this.stalkerConnectionEditor.resolveConnection(
|
||||
normalizedPlaylist
|
||||
normalizedPlaylist,
|
||||
this.playlist
|
||||
);
|
||||
if (
|
||||
result.status !==
|
||||
|
||||
+2
-1
@@ -41,7 +41,8 @@ export interface StalkerResolvedConnectionApplyOptions {
|
||||
|
||||
export interface StalkerPlaylistConnectionEditor {
|
||||
resolveConnection(
|
||||
playlist: PlaylistMeta
|
||||
playlist: PlaylistMeta,
|
||||
sourcePlaylist?: PlaylistMeta
|
||||
): Promise<StalkerPlaylistConnectionResult>;
|
||||
/** Atomically persists a resolved edit, then synchronizes in-run state. */
|
||||
applyResolvedConnection(
|
||||
|
||||
Reference in new issue
Block a user