Skip to content

Commit bb5c706

Browse files
committed
split assignment and return to separate files
1 parent ab92eb3 commit bb5c706

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/backend/src/song/song-upload/song-upload.service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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';
1716
import {
1817
injectSongFileMetadata,
1918
NoteQuadTree,
2019
obfuscateAndPackSong,
2120
SongStatsGenerator,
2221
} from '@nbw/song';
2322
import { drawToImage } from '@nbw/thumbnail/node';
23+
import type { SongStats, ThumbnailData, UploadSongDto } from '@nbw/validation';
2424
import { FileService } from '@server/file/file.service';
2525
import { 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(

0 commit comments

Comments
 (0)