fix: migration failure caused by moments api changes #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind bug
What this PR does / why we need it:
将创建瞬间的接口由
/apis/api.plugin.halo.run/v1alpha1/plugins/PluginMoments/moments
更改为/apis/console.api.moment.halo.run/v1alpha1/moments
。由于此问题只会在瞬间 >= 1.5.0 版本中出现,因此将此插件版本依赖升级为 >=2.12.0
解决由于瞬间接口变更而引发的导入错误。
How to test it?
安装 >= 1.5.0 版本的瞬间
使用 1.5/1.6 版本的 Halo 备份文件进行数据导入。查看是否能够成功导入瞬间。
Which issue(s) this PR fixes:
Fixes #38
Does this PR introduce a user-facing change?