refactor: account model overhaul

This commit is contained in:
2026-01-01 18:29:52 +00:00
parent ad7d7c6a1b
commit 88492dd876
49 changed files with 1559 additions and 573 deletions

View File

@@ -103,7 +103,7 @@ func (s *Service) ReceiveUpload(ctx context.Context, db bun.IDB, uploadID string
return ErrUnauthorized
}
if upload.TargetNode.AccountID != scope.AccountID {
if upload.TargetNode.DriveID != scope.DriveID {
return ErrNotFound
}
@@ -132,7 +132,7 @@ func (s *Service) CompleteUpload(ctx context.Context, db bun.IDB, uploadID strin
return nil, ErrUnauthorized
}
if upload.TargetNode.AccountID != scope.AccountID {
if upload.TargetNode.DriveID != scope.DriveID {
return nil, ErrNotFound
}