update something can update
This commit is contained in:
@@ -41,8 +41,16 @@ export class UploadedFileSchema extends PothosSchema {
|
||||
nullable: true,
|
||||
description: 'The type of the file.',
|
||||
}),
|
||||
fileUrl: t.exposeString('fileUrl', {
|
||||
fileUrl: t.string({
|
||||
nullable: true,
|
||||
description: 'The URL of the file.',
|
||||
resolve: async (file) => {
|
||||
return await this.minioService.updatePresignUrl(
|
||||
file.id,
|
||||
'files',
|
||||
file.fileUrl,
|
||||
)
|
||||
},
|
||||
}),
|
||||
uploadedAt: t.expose('uploadedAt', {
|
||||
type: 'DateTime',
|
||||
|
||||
Reference in New Issue
Block a user