1 Commits

Author SHA1 Message Date
65b1daa52c Bug fix 2025-05-10 14:07:12 +03:00

4
api.go
View File

@ -134,6 +134,10 @@ func (a *Agate) SaveSnapshot(ctx context.Context, name string, parentID string)
}
// If parentID is not provided, use the current snapshot ID
if parentID == "" {
parentID = a.currentSnapshotID
}
effectiveParentID := parentID
// Create the snapshot