Skip to content

Commit d0bd421

Browse files
Update and repair the local scanning strategy for audio types in the media library
1 parent e3a155d commit d0bd421

File tree

25 files changed

+4428
-862
lines changed

25 files changed

+4428
-862
lines changed

NineSong/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ CONTEXT_TIMEOUT=10
2929
# ===== 数据库配置 | Database configuration =====
3030
# windows 本地开发 DB_HOST=localhost
3131
# docker 镜像部署 DB_HOST=mongodb
32-
DB_HOST=mongodb # localhost: local # mongodb: docker
32+
DB_HOST=localhost # localhost: local # mongodb: docker
3333
# Database host (modifiable)
3434
DB_PORT=27017 # 数据库端口(可修改)
3535
# Database port (modifiable)

NineSong/api/controller/controller_file_entity/scene_audio_db_api_controller/folder_entity_controller.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ func (ctrl *LibraryController) DeleteLibrary(c *gin.Context) {
114114
return
115115
}
116116

117-
c.Status(http.StatusNoContent)
117+
c.JSON(http.StatusOK, gin.H{
118+
"deleted": true,
119+
"libraryId": id,
120+
})
118121
}
119122

120123
func (ctrl *LibraryController) GetLibraries(c *gin.Context) {

0 commit comments

Comments
 (0)