workspace: apply eslint edits

This commit is contained in:
undefined committed 2025-03-21 09:48:17 +08:00
1 parent 040f7d8863
commit 0e7f5fe635
63 files changed
+47 -96

No files matched your search

-1
View File
@@ -1,4 +1,3 @@
/* eslint-disable no-await-in-loop */
import {
BSON, Db, Filter, ObjectId, OnlyFieldsOfType,
} from 'mongodb';
+1 -1
View File
@@ -59,7 +59,7 @@ export class MongoService extends Service {
const mongourl = await MongoService.getUrl();
const url = mongoUri.parse(mongourl);
this.client = await MongoClient.connect(mongourl);
yield () => { this.client.close(); }
yield () => { this.client.close(); };
this.db = this.client.db(url.database || 'hydro');
await bus.parallel('database/connect', this.db);
this.ctx.setInterval(() => this.fixExpireAfter(), Time.hour);