Initial commit: YouTube Studio Flow (backend, frontend, infrastructure, docs)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { LintSeverity } from '@prisma/client';
|
||||
import { LintRule, LintIssue } from './base.rule';
|
||||
|
||||
export class RemoteConflictRule implements LintRule {
|
||||
code = 'REMOTE_CONFLICT';
|
||||
severity = LintSeverity.ERROR;
|
||||
|
||||
check(video: any): LintIssue | null {
|
||||
if (video.remoteConflict) {
|
||||
return {
|
||||
message: 'Remote YouTube metadata has changed since last sync — local and remote are out of sync',
|
||||
targetField: 'sync',
|
||||
fixSuggestion: 'Review the remote changes and re-sync to resolve the conflict.',
|
||||
};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user