mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Replace dataType by binary flag
This commit is contained in:
committed by
Joachim Van Herwegen
parent
385e1a4cdf
commit
c5c5d13570
@@ -2,7 +2,6 @@ import streamifyArray from 'streamify-array';
|
||||
import { AclManager } from '../authorization/AclManager';
|
||||
import { ExpressHttpServer } from '../server/ExpressHttpServer';
|
||||
import { ResourceStore } from '../storage/ResourceStore';
|
||||
import { DATA_TYPE_BINARY } from '../util/ContentTypes';
|
||||
import { RuntimeConfig, RuntimeConfigData } from './RuntimeConfig';
|
||||
|
||||
/**
|
||||
@@ -52,7 +51,7 @@ export class Setup {
|
||||
await this.store.setRepresentation(
|
||||
await this.aclManager.getAcl({ path: this.runtimeConfig.base }),
|
||||
{
|
||||
dataType: DATA_TYPE_BINARY,
|
||||
binary: true,
|
||||
data: streamifyArray([ acl ]),
|
||||
metadata: {
|
||||
raw: [],
|
||||
|
||||
Reference in New Issue
Block a user