fixed MainStoryList
This commit is contained in:
@@ -574,8 +574,8 @@ func get(c *fiber.Ctx) error {
|
|||||||
"userMainStoryList": func() map[string]any {
|
"userMainStoryList": func() map[string]any {
|
||||||
var entries []any
|
var entries []any
|
||||||
if msMap, ok := m["masterMainStoryMap"].(map[string]any); ok {
|
if msMap, ok := m["masterMainStoryMap"].(map[string]any); ok {
|
||||||
list := msMap["entries"].([]any)
|
list := msMap["entries"].(map[string]any)
|
||||||
for _, l := range slices.Backward(list) {
|
for _, l := range list {
|
||||||
story := l.(map[string]any)
|
story := l.(map[string]any)
|
||||||
entries = append(entries, map[string]any{
|
entries = append(entries, map[string]any{
|
||||||
"userId": userid, "storyId": story["mainStoryId"], "status": "already_read",
|
"userId": userid, "storyId": story["mainStoryId"], "status": "already_read",
|
||||||
|
|||||||
Reference in New Issue
Block a user