fix logic get fileurl
This commit is contained in:
@@ -57,7 +57,7 @@ export class ResumeSchema extends PothosSchema {
|
|||||||
description: 'The URL of the resume file.',
|
description: 'The URL of the resume file.',
|
||||||
resolve: async (file, args, ctx) => {
|
resolve: async (file, args, ctx) => {
|
||||||
const fileUrl = await this.minioService.getFileUrl(
|
const fileUrl = await this.minioService.getFileUrl(
|
||||||
file.fileUrl,
|
file.id,
|
||||||
'resumes',
|
'resumes',
|
||||||
);
|
);
|
||||||
if (!fileUrl) {
|
if (!fileUrl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user