Add informations to the history
This commit is contained in:
@@ -16,4 +16,7 @@ export class SongHistoryDto {
|
||||
|
||||
@ApiProperty()
|
||||
difficulties: Record<string, number>
|
||||
|
||||
@ApiProperty()
|
||||
info: Record<string, number>
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ export class HistoryService {
|
||||
songID,
|
||||
userID,
|
||||
score,
|
||||
info,
|
||||
difficulties,
|
||||
}: SongHistoryDto): Promise<SongHistory> {
|
||||
await this.prisma.user.update({
|
||||
@@ -26,6 +27,7 @@ export class HistoryService {
|
||||
data: {
|
||||
score,
|
||||
difficulties,
|
||||
info,
|
||||
song: {
|
||||
connect: {
|
||||
id: songID,
|
||||
|
||||
Reference in New Issue
Block a user