Skip to content

Commit ff2a728

Browse files
committed
fix: カラム名が公式と違っている問題を修正
1 parent b0b0a46 commit ff2a728

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

OngekiMuseumApi/OngekiMuseumApi/Controllers/Api/OfficialMusicController.cs

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -84,27 +84,28 @@ private static List<object> CreateMusicResponseList(IEnumerable<Models.OfficialM
8484
{
8585
return officialMusics.Select(music => new
8686
{
87-
New = music.New ?? "",
88-
Date = music.Date ?? "",
89-
Title = music.Title ?? "",
90-
TitleSort = music.TitleSort ?? "",
91-
Artist = music.Artist ?? "",
92-
IdString = music.IdString ?? "",
93-
ChapId = music.ChapId ?? "",
94-
Chapter = music.Chapter ?? "",
95-
Character = music.Character ?? "",
96-
CharaId = music.CharaId ?? "",
97-
Category = music.Category ?? "",
98-
CategoryId = music.CategoryId ?? "",
99-
Lunatic = music.Lunatic ?? "",
100-
Bonus = music.Bonus ?? "",
101-
Copyright1 = music.Copyright1 ?? "",
102-
LevBas = music.LevBas ?? "",
103-
LevAdv = music.LevAdv ?? "",
104-
LevExc = music.LevExc ?? "",
105-
LevMas = music.LevMas ?? "",
106-
LevLnt = music.LevLnt ?? "",
107-
ImageUrl = music.ImageUrl ?? ""
108-
}).OrderByDescending(music => music.Date).ToList<object>();
87+
@new = music.New ?? "",
88+
date = music.Date ?? "",
89+
title = music.Title ?? "",
90+
title_sort = music.TitleSort ?? "",
91+
artist = music.Artist ?? "",
92+
id = music.IdString ?? "",
93+
chap_id = music.ChapId ?? "",
94+
chapter = music.Chapter ?? "",
95+
character = music.Character ?? "",
96+
chara_id = music.CharaId ?? "",
97+
category = music.Category ?? "",
98+
category_id = music.CategoryId ?? "",
99+
lunatic = music.Lunatic ?? "",
100+
bonus = music.Bonus ?? "",
101+
copyright1 = music.Copyright1 ?? "",
102+
lev_bas = music.LevBas ?? "",
103+
lev_adv = music.LevAdv ?? "",
104+
lev_exc = music.LevExc ?? "",
105+
lev_mas = music.LevMas ?? "",
106+
lev_lnt = music.LevLnt ?? "",
107+
image_url = music.ImageUrl ?? "",
108+
uuid = music.Uuid,
109+
}).OrderByDescending(music => music.date).ToList<object>();
109110
}
110111
}

0 commit comments

Comments
 (0)