coyotte508's picture
coyotte508 HF Staff
♻️ Migrate pictures to Object Storage
142fc6a
raw
history blame contribute delete
336 Bytes
import { collections } from '$lib/server/db';
import { pages } from '$lib/server/db/page-collection';
import type { PageServerLoad } from './$types';
export const load: PageServerLoad = async () => {
return {
pages: Object.values(pages),
photos: await collections.pictures.find({ productId: { $exists: false } }).toArray()
};
};