File tree Expand file tree Collapse file tree
apps/backend/src/song/song-upload Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ import {
1313 SongDocument ,
1414 type UserDocument ,
1515} from '@nbw/database' ;
16- import type { SongStats , ThumbnailData , UploadSongDto } from '@nbw/validation' ;
1716import {
1817 injectSongFileMetadata ,
1918 NoteQuadTree ,
2019 obfuscateAndPackSong ,
2120 SongStatsGenerator ,
2221} from '@nbw/song' ;
2322import { drawToImage } from '@nbw/thumbnail/node' ;
23+ import type { SongStats , ThumbnailData , UploadSongDto } from '@nbw/validation' ;
2424import { FileService } from '@server/file/file.service' ;
2525import { UserService } from '@server/user/user.service' ;
2626
@@ -187,7 +187,7 @@ export class SongUploadService {
187187 ) ;
188188
189189 // Create song document
190- return await this . generateSongDocument (
190+ const song = await this . generateSongDocument (
191191 user ,
192192 publicId ,
193193 body ,
@@ -197,6 +197,8 @@ export class SongUploadService {
197197 songStats ,
198198 file ,
199199 ) ;
200+
201+ return song ;
200202 }
201203
202204 public async processSongPatch (
You can’t perform that action at this time.
0 commit comments