fix(node): NodeId filter to FilterNodeParams and update cache clearing logic

This commit is contained in:
Chang lue Tsen
2025-09-29 10:22:11 +09:00
parent 25c7eb3927
commit d6fcff1fee
2 changed files with 8 additions and 4 deletions
+4 -4
View File
@@ -470,10 +470,10 @@ func (l *ActivateOrderLogic) clearServerCache(ctx context.Context, sub *subscrib
tags := strings.Split(sub.NodeTags, ",")
err := l.svc.NodeModel.ClearNodeCache(ctx, &node.FilterNodeParams{
Page: 1,
Size: 1000,
ServerId: nodeIds,
Tag: tags,
Page: 1,
Size: 1000,
NodeId: nodeIds,
Tag: tags,
})
if err != nil {
logger.WithContext(ctx).Error("[Order Queue] Clear node cache failed", logger.Field("error", err.Error()))