mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix: Set '@typescript-eslint/return-await' rule to 'always' for node code (no-changelog) (#8363)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -34,11 +34,11 @@ export class ObjectStoreManager implements BinaryData.Manager {
|
||||
}
|
||||
|
||||
async getAsBuffer(fileId: string) {
|
||||
return this.objectStoreService.get(fileId, { mode: 'buffer' });
|
||||
return await this.objectStoreService.get(fileId, { mode: 'buffer' });
|
||||
}
|
||||
|
||||
async getAsStream(fileId: string) {
|
||||
return this.objectStoreService.get(fileId, { mode: 'stream' });
|
||||
return await this.objectStoreService.get(fileId, { mode: 'stream' });
|
||||
}
|
||||
|
||||
async getMetadata(fileId: string): Promise<BinaryData.Metadata> {
|
||||
@@ -102,6 +102,6 @@ export class ObjectStoreManager implements BinaryData.Manager {
|
||||
}
|
||||
|
||||
private async toBuffer(bufferOrStream: Buffer | Readable) {
|
||||
return toBuffer(bufferOrStream);
|
||||
return await toBuffer(bufferOrStream);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user