feat: add browser upload queue and trusted sessions with bounded projections
This commit is contained in:
1 parent
84d52390f9
commit
b90aef79d0
79 files changed
+1962
-196
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"strings"
|
||||
@@ -69,6 +70,10 @@ func (s *Store) ResolvePathInDomain(
|
||||
domainUUID string,
|
||||
path string,
|
||||
) (string, error) {
|
||||
return s.ResolvePathInDomainContext(context.Background(), domainUUID, path)
|
||||
}
|
||||
|
||||
func (s *Store) ResolvePathInDomainContext(ctx context.Context, domainUUID, path string) (string, error) {
|
||||
path = normalizePath(path)
|
||||
if err := s.ensureLocalDomain(domainUUID); err != nil {
|
||||
return "", err
|
||||
@@ -76,7 +81,7 @@ func (s *Store) ResolvePathInDomain(
|
||||
|
||||
var objectUUID string
|
||||
|
||||
err := s.DB.QueryRow(`
|
||||
err := s.DB.QueryRowContext(ctx, `
|
||||
SELECT object_uuid
|
||||
FROM paths
|
||||
WHERE domain_uuid = ?
|
||||
|
||||
Reference in new issue
Block a user