chore: debug
This commit is contained in:
parent
0a46d6a118
commit
8a7679dadb
1 changed files with 2 additions and 0 deletions
|
@ -12,11 +12,13 @@ export default async (request, context) => {
|
||||||
const id = params.get('id')
|
const id = params.get('id')
|
||||||
const data = await request.formData()
|
const data = await request.formData()
|
||||||
const payload = data.get('payload')
|
const payload = data.get('payload')
|
||||||
|
console.log(payload)
|
||||||
const artist = payload['Metadata']['grandparentTitle']
|
const artist = payload['Metadata']['grandparentTitle']
|
||||||
const album = payload['Metadata']['parentTitle']
|
const album = payload['Metadata']['parentTitle']
|
||||||
const track = payload['Metadata']['title']
|
const track = payload['Metadata']['title']
|
||||||
const artists = getStore('artists')
|
const artists = getStore('artists')
|
||||||
|
|
||||||
|
|
||||||
const debug = getStore('debug')
|
const debug = getStore('debug')
|
||||||
await debug.setJSON('debug', JSON.stringify(payload))
|
await debug.setJSON('debug', JSON.stringify(payload))
|
||||||
|
|
||||||
|
|
Reference in a new issue