Skip to content

Commit 1bebf87

Browse files
committed
fix
1 parent 58d751b commit 1bebf87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
config/app.dev.json
2-
bundles
2+
bundels/*
33
__debug_bin*

request/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ func (App) CheckBundle(ctx *gin.Context) {
340340
var hash *string
341341
if deployment.VersionId != nil {
342342
deployment := model.DeploymentVersion{}.GetByKeyDeploymentIdAndVersion(*deployment.Id, *checkBundleReq.Version)
343-
if deployment != nil {
343+
if deployment != nil && deployment.CurrentPackage != nil {
344344
pack := model.GetOne[model.Package]("id", deployment.CurrentPackage)
345345
hash = pack.Hash
346346
}

0 commit comments

Comments
 (0)