Skip to content

Commit bd79e3e

Browse files
authored
fixed convert db bug (#253)
1 parent df97e7d commit bd79e3e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎packages/db-service/src/modules/file_bucket/file_bucket.service.ts‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,10 @@ export class FileBucketService {
9797
const convertDbBucket = (bucket: any): FileBucketProto.Bucket => {
9898
const mappedFiles: IdentifierProto.FileIdentifier[] =
9999
bucket.FileServiceFile.map((file) => ({
100-
fileId: {
101-
path: file.path,
102-
configId: file.configId,
103-
bucketName: file.bucketName,
104-
configEnv: file.configEnv,
105-
} as IdentifierProto.FileIdentifier,
100+
path: file.path,
101+
configId: file.configId,
102+
bucketName: file.bucketName,
103+
configEnv: file.configEnv,
106104
}));
107105

108106
const res: FileBucketProto.Bucket = {

0 commit comments

Comments
 (0)