From 545ffe102614a0e89c243b354f672d1fd8742c81 Mon Sep 17 00:00:00 2001 From: MuZhou233 Date: Thu, 21 Dec 2023 23:14:03 +0000 Subject: [PATCH] chore: fix test --- app/sephirah/internal/data/gebura.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/sephirah/internal/data/gebura.go b/app/sephirah/internal/data/gebura.go index 19a0de55..eb47f631 100644 --- a/app/sephirah/internal/data/gebura.go +++ b/app/sephirah/internal/data/gebura.go @@ -214,6 +214,12 @@ func (g geburaRepo) GetBatchBoundApps(ctx context.Context, ids []model.InternalI } } } + if res[i].Internal == nil { + res[i].Internal = new(modelgebura.App) + } + if res[i].Steam == nil { + res[i].Steam = new(modelgebura.App) + } } return res, nil }