This commit is contained in:
@kirill.komarov
2026-05-10 17:38:04 +05:00
parent df4435dd67
commit 20096c1eec
12 changed files with 361 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
import { prisma } from './prisma.js'
/** Регистрация загруженных путей в медиатеке (идемпотентно). */
export async function upsertGalleryImagesByUrls(urls) {
for (const url of urls) {
await prisma.galleryImage.upsert({
where: { url },
create: { url },
update: {},
})
}
}