Add informations to the history

This commit is contained in:
2023-05-23 18:23:11 +09:00
parent 155e6f49af
commit b1d2027d4b
5 changed files with 20 additions and 1 deletions
+3
View File
@@ -16,4 +16,7 @@ export class SongHistoryDto {
@ApiProperty()
difficulties: Record<string, number>
@ApiProperty()
info: Record<string, number>
}
+2
View File
@@ -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,