904118851 4 сар өмнө
parent
commit
f3834fd65f

+ 1 - 1
service/backmgr/whitelist_books.lua

@@ -91,7 +91,7 @@ function M.search_book_list(msg_body)
         param = " WHERE "..param
         param = " WHERE "..param
     end
     end
 
 
-    local sql = "SELECT * FROM whitelist_books "..param..string.format(" LIMIT %d OFFSET %d ",page_size, offset)
+    local sql = "SELECT * FROM whitelist_books "..param.."ORDER BY id DESC"..string.format(" LIMIT %d OFFSET %d ",page_size, offset)
    
    
     local list = mysqldbx.query(sql)
     local list = mysqldbx.query(sql)