Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tapiarafael authored and d-gubert committed Jan 7, 2024
1 parent 73aa008 commit fa15b90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/ee/server/apps/storage/AppRealLogStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class AppRealLogStorage extends AppLogStorage {
},
options?: IAppLogStorageFindOptions,
): Promise<ILoggerStorageEntry[]> {
return this.db.find(query, options).toArray();
return this.db.find({ ...options, ...query }).toArray();
}

async storeEntries(logEntry: ILoggerStorageEntry): Promise<ILoggerStorageEntry> {
Expand Down
3 changes: 3 additions & 0 deletions packages/model-typings/src/models/IAppLogsModel.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import type { DeleteResult, Filter } from 'mongodb';

import type { IBaseModel } from './IBaseModel';

// TODO: type for AppLogs
export interface IAppLogsModel extends IBaseModel<any> {
resetTTLIndex(expireAfterSeconds: number): Promise<void>;
remove(query: Filter<any>): Promise<DeleteResult>;
}

0 comments on commit fa15b90

Please sign in to comment.