Skip to content

Commit 85a8ce5

Browse files
committed
🚧 Fix log datasource preview log content fail
1 parent f4d90eb commit 85a8ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/datasource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (datasourceController datasourceController) SearchViewLogsContent(ctx *gin.
195195
BindJson(ctx, r)
196196

197197
Service(ctx, func() (interface{}, interface{}) {
198-
data, err := services.DatasourceService.Get(r.DatasourceId)
198+
data, err := services.DatasourceService.Get(&types.RequestDatasourceQuery{ID: r.DatasourceId})
199199
if err != nil {
200200
return nil, err
201201
}

0 commit comments

Comments
 (0)