diff --git a/shared-libs/cht-datasource/src/local/libs/doc.ts b/shared-libs/cht-datasource/src/local/libs/doc.ts index a4c5181f468..69962a0698b 100644 --- a/shared-libs/cht-datasource/src/local/libs/doc.ts +++ b/shared-libs/cht-datasource/src/local/libs/doc.ts @@ -27,8 +27,12 @@ export const getDocsByIds = (db: PouchDB.Database) => async (uuids: string[ .filter((doc): doc is Doc => isDoc(doc)); }; -const queryDocs = (db: PouchDB.Database, view: string, options: PouchDB.Query.Options) => db - .query(view, {...options}) +const queryDocs = ( + db: PouchDB.Database, + view: string, + options: PouchDB.Query.Options> +) => db + .query(view, options) .then(({ rows }) => rows.map(({ doc }) => isDoc(doc) ? doc : null)); /** @internal */