Method
createLocalSyncVersion
(ctx context.Context, v types.SyncVersion)
Source from the content-addressed store, hash-verified
| 454 | } |
| 455 | |
| 456 | func (c *MultiSyncComponent) createLocalSyncVersion(ctx context.Context, v types.SyncVersion) error { |
| 457 | syncVersion := database.SyncVersion{ |
| 458 | Version: v.Version, |
| 459 | SourceID: v.SourceID, |
| 460 | RepoPath: v.RepoPath, |
| 461 | RepoType: v.RepoType, |
| 462 | LastModifiedAt: v.LastModifyTime, |
| 463 | ChangeLog: v.ChangeLog, |
| 464 | } |
| 465 | err := c.versionStore.Create(ctx, &syncVersion) |
| 466 | if err != nil { |
| 467 | return err |
| 468 | } |
| 469 | return nil |
| 470 | } |
Tested by
no test coverage detected