This commit is contained in:
Александр Лазаренко 2025-05-10 14:07:12 +03:00
parent fb2ae39b47
commit 65b1daa52c
Signed by: Kerblif
GPG Key ID: 5AFAD6640F4670C3

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