mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
style: add @typescript-eslint/return-await rule (#9612)
This commit is contained in:
@@ -70,7 +70,7 @@ export class IndexedDBIndex<S extends Schema> implements Index<S> {
|
||||
return fromPromise(async () => {
|
||||
try {
|
||||
const trx = await this.data.readonly();
|
||||
return this.data.search(trx, query, options);
|
||||
return await this.data.search(trx, query, options);
|
||||
} catch (error) {
|
||||
logger.error('search error', error);
|
||||
throw error;
|
||||
@@ -100,7 +100,7 @@ export class IndexedDBIndex<S extends Schema> implements Index<S> {
|
||||
return fromPromise(async () => {
|
||||
try {
|
||||
const trx = await this.data.readonly();
|
||||
return this.data.aggregate(trx, query, field, options);
|
||||
return await this.data.aggregate(trx, query, field, options);
|
||||
} catch (error) {
|
||||
logger.error('aggregate error', error);
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user