mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
update upload file name
This commit is contained in:
parent
4610c81092
commit
6e554e2bca
1 changed files with 6 additions and 5 deletions
|
|
@ -524,10 +524,7 @@ const uploadSummary = async (
|
|||
console.time('uploadSummary')
|
||||
logger.info('uploading summaries to gcs')
|
||||
|
||||
const filename = generateUploadFilePathName(
|
||||
userId,
|
||||
`${digest.id}/summaries.json`
|
||||
)
|
||||
const filename = `digest/${userId}/${digest.id}/summaries.json`
|
||||
await uploadToBucket(
|
||||
filename,
|
||||
Buffer.from(
|
||||
|
|
@ -538,7 +535,11 @@ const uploadSummary = async (
|
|||
summary: item.summary,
|
||||
})),
|
||||
})
|
||||
)
|
||||
),
|
||||
{
|
||||
contentType: 'application/json',
|
||||
public: false,
|
||||
}
|
||||
)
|
||||
|
||||
logger.info('uploaded summaries to gcs')
|
||||
|
|
|
|||
Loading…
Reference in a new issue