Skip to content

Commit 2ad9212

Browse files
Егор КоноваловЕгор Коновалов
authored andcommitted
fix(): missing await
1 parent 56d6546 commit 2ad9212

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

workers/limiter/src/dbHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class DbHelper {
163163
...this.tariffPlanLookupPipeline(),
164164
];
165165

166-
const workspace = this.workspacesCollection.aggregate<WorkspaceWithTariffPlan>(pipeline).next();
166+
const workspace = await this.workspacesCollection.aggregate<WorkspaceWithTariffPlan>(pipeline).next();
167167

168168
if (workspace === null) {
169169
throw new NonCriticalError(`Workspace ${id} not found`, {

0 commit comments

Comments
 (0)