fix upload
This commit is contained in:
@@ -43,18 +43,8 @@ export class CenterSchema extends PothosSchema {
|
||||
description: t.exposeString('description', {
|
||||
description: 'The description of the center.',
|
||||
}),
|
||||
logoUrl: t.string({
|
||||
logoUrl: t.exposeString('logoUrl', {
|
||||
description: 'The URL of the center logo.',
|
||||
resolve: async (center, args, ctx) => {
|
||||
const fileUrl = await this.minioService.getFileUrl(
|
||||
center.uploadedFileId ?? '',
|
||||
'centers',
|
||||
);
|
||||
if (!fileUrl) {
|
||||
return '';
|
||||
}
|
||||
return fileUrl;
|
||||
},
|
||||
}),
|
||||
logoFile: t.relation('logoFile', {
|
||||
description: 'The file associated with the center logo.',
|
||||
|
||||
Reference in New Issue
Block a user