Skip to content

Commit

Permalink
fix tags in items
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanko2 committed Aug 4, 2024
1 parent e89631a commit 193c7ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export function loadConfig(): Config {
const watcher = fs.watch(import.meta.dir + '/uploads', (event, filename) => {
console.log(`Detected ${event} in ${filename}`)
if (event !== 'change' || filename !== 'config.json') return
console.log('Reloading config')
const currConfig = JSON.parse(JSON.stringify(config))
try {
config = loadConfig()
Expand Down
2 changes: 1 addition & 1 deletion pages/shop/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function post(req: SessionRequest): Promise<Response> {
consumable: formdata.get('consumable') === 'on',
tags: {
connect: formdata.getAll('tags').map(e => {
return { id: e }
return { id: parseInt(e) }
})
}
}
Expand Down

0 comments on commit 193c7ec

Please sign in to comment.