Skip to content

Commit

Permalink
fix: resolve rollback graphql history not close source file.
Browse files Browse the repository at this point in the history
lovestaryouth committed Dec 13, 2024
1 parent c2453e9 commit 430a0d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/operation.go
Original file line number Diff line number Diff line change
@@ -238,6 +238,7 @@ func (o *operation) rollbackGraphqlHistoryText(c echo.Context) (err error) {
if _err != nil {
return _err
}
defer func() { _ = srcFile.Close() }()
if _, _err = io.Copy(dstFile, srcFile); _err != nil {
return _err
}

0 comments on commit 430a0d0

Please sign in to comment.