mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
add test for geoip
This commit is contained in:
1 parent
7651b0a697
commit
a8bdfa8f30
7 files changed
+26
-13
No files matched your search
@@ -55,7 +55,7 @@ export function edit(domainId: string, $set: any) {
|
||||
return coll.updateOne({ _id: domainId }, { $set });
|
||||
}
|
||||
|
||||
export async function inc(domainId: string, field: any, n: number): Promise<number | null> {
|
||||
export async function inc(domainId: string, field: keyof DomainDoc, n: number): Promise<number | null> {
|
||||
const res = await coll.findOneAndUpdate(
|
||||
{ _id: domainId },
|
||||
// FIXME
|
||||
|
||||
Reference in new issue
Block a user