mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-06 03:31:02 -06:00
[server][core] WIP: Split fileSystem and txFileSystem
This commit is contained in:
@@ -35,10 +35,11 @@ func User(cmd *cobra.Command) *core.User {
|
||||
func UserFileSystem(cmd *cobra.Command) core.FileSystem {
|
||||
if f == nil {
|
||||
user := User(cmd)
|
||||
db := db.Get(context.Background())
|
||||
if user == nil {
|
||||
f = core.OpenOmniscient(db.Get(context.Background()))
|
||||
f = core.OpenOmniscient(db)
|
||||
} else {
|
||||
f = user.OpenFileSystem(context.Background())
|
||||
f = user.OpenFileSystem(db)
|
||||
}
|
||||
}
|
||||
return f
|
||||
|
||||
Reference in New Issue
Block a user