mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix ci warnings
This commit is contained in:
13 files changed
+30
-22
No files matched your search
@@ -195,7 +195,7 @@ export async function apply(ctx: Context) {
|
||||
if (overrideLimit) maxOperations = overrideLimit;
|
||||
// deprecated: remove boolean support in future
|
||||
if (typeof defaultKey === 'boolean') defaultKey = defaultKey ? '{{user}}' : '{{ip}}';
|
||||
const id = defaultKey.replace('{{ip}}', this.request.ip).replace('{{user}}', this.user._id);
|
||||
const id = defaultKey.replace('{{ip}}', this.request.ip).replace('{{user}}', this.user?._id?.toString() || '0');
|
||||
await opcount.inc(op, id, periodSecs, maxOperations);
|
||||
},
|
||||
renderTitle(str: string) {
|
||||
|
||||
Reference in new issue
Block a user