Skip to content

Commit 028103a

Browse files
committed
Rename to basicServerConfig
1 parent 6114fbf commit 028103a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Controllers/FilesController.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ export class FilesController extends AdaptableController {
3030
}
3131

3232
// Create a clean config object with only the properties needed by file adapters
33-
const adapterConfig = {
33+
const basicServerConfig = {
3434
applicationId: config.applicationId,
3535
mount: config.mount,
3636
fileKey: config.fileKey
3737
};
3838

39-
const createResult = await this.adapter.createFile(filename, data, contentType, options, adapterConfig);
39+
const createResult = await this.adapter.createFile(filename, data, contentType, options, basicServerConfig);
4040
filename = createResult?.name || filename; // if createFile returns a new filename, use it
4141

42-
const url = createResult?.url || await this.adapter.getFileLocation(adapterConfig, filename); // if createFile returns a new url, use it otherwise get the url from the adapter
42+
const url = createResult?.url || await this.adapter.getFileLocation(basicServerConfig, filename); // if createFile returns a new url, use it otherwise get the url from the adapter
4343

4444
return {
4545
url: url,

0 commit comments

Comments
 (0)