fix(techdocs): fix JSON schema to match AWS S3 region + fix tests

This commit is contained in:
Remi
2020-12-21 16:28:27 +01:00
parent e4dfaba3c1
commit 1582b03b21
@@ -25,6 +25,12 @@ export class S3 {
}
headObject({ Key }: { Key: string }) {
return {
promise: () => this.checkFileExists(Key),
};
}
getObject({ Key }: { Key: string }) {
return {
promise: () => this.checkFileExists(Key),
createReadStream: () => {
@@ -45,12 +51,6 @@ export class S3 {
};
}
getObject({ Key }: { Key: string }) {
return {
promise: () => this.checkFileExists(Key),
};
}
checkFileExists(Key: string) {
return new Promise((resolve, reject) => {
if (fs.existsSync(Key)) {