Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions import/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function importProductData(fileName: string, collectionName: string) {
console.log('content', content)
const records = parse(content, { delimiter: ';' });

const myCollection = client.collections.get(collectionName);
const myCollection = client.collections.use(collectionName);
let itemsToInsert = [];
let counter = 0;

Expand Down Expand Up @@ -106,7 +106,7 @@ async function importTrailData(fileName: string, collectionName: string) {
console.log('content', content)
const records = parse(content);

const myCollection = client.collections.get(collectionName);
const myCollection = client.collections.use(collectionName);
let itemsToInsert = [];
let counter = 0;

Expand Down
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default defineNuxtConfig({
modules: [
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'nuxt-mcp'
],
postcss: {
plugins: {
Expand Down
Loading