mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Linting
This commit is contained in:
parent
e23eada168
commit
05ea57f76f
2 changed files with 7 additions and 8 deletions
|
|
@ -115,10 +115,12 @@ export const uploadFileRequestResolver: ResolverFn<
|
|||
// If we have a file:// URL, don't try to match it
|
||||
// and create a copy of the page, just create a
|
||||
// new item.
|
||||
const page = isFileUrl(input.url) ? await getPageByParam({
|
||||
userId: claims.uid,
|
||||
url: input.url,
|
||||
}) : undefined
|
||||
const page = isFileUrl(input.url)
|
||||
? await getPageByParam({
|
||||
userId: claims.uid,
|
||||
url: input.url,
|
||||
})
|
||||
: undefined
|
||||
|
||||
if (page) {
|
||||
if (
|
||||
|
|
|
|||
|
|
@ -16,10 +16,7 @@ const storage = env.fileUpload?.gcsUploadSAKeyFilePath
|
|||
const bucketName = env.fileUpload.gcsUploadBucket
|
||||
|
||||
export const getFilePublicUrl = (filePathName: string): string => {
|
||||
return storage
|
||||
.bucket(bucketName)
|
||||
.file(filePathName)
|
||||
.publicUrl()
|
||||
return storage.bucket(bucketName).file(filePathName).publicUrl()
|
||||
}
|
||||
|
||||
export const generateUploadSignedUrl = async (
|
||||
|
|
|
|||
Loading…
Reference in a new issue