Init repo
Master Production Deploy / production (push) Failing after 7m51s

This commit is contained in:
2026-05-16 23:51:49 +03:00
parent 9f4f99f0f9
commit df60a7b74c
41 changed files with 5107 additions and 0 deletions
@@ -0,0 +1,20 @@
'use server';
import { revalidatePath, updateTag } from 'next/cache';
import { VIDEO_COLLECTION_TAG } from '@/entities/video/api/videoCache';
import { addVideo } from '@/entities/video/api/videoRepository';
import { normalizeVideoDraft } from '@/entities/video/model/video';
export async function registerVideoAction(formData: FormData) {
const draft = normalizeVideoDraft({
title: String(formData.get('title') ?? ''),
owner: String(formData.get('owner') ?? ''),
sourceUrl: String(formData.get('sourceUrl') ?? ''),
status: String(formData.get('status') ?? ''),
});
await addVideo(draft);
updateTag(VIDEO_COLLECTION_TAG);
revalidatePath('/');
}