fix logic get fileurl

This commit is contained in:
2024-10-17 20:17:17 +07:00
parent 497b116a96
commit a9f9861e43

View File

@@ -57,7 +57,7 @@ export class ResumeSchema extends PothosSchema {
description: 'The URL of the resume file.',
resolve: async (file, args, ctx) => {
const fileUrl = await this.minioService.getFileUrl(
file.fileUrl,
file.id,
'resumes',
);
if (!fileUrl) {