mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-18 04:59:02 +01:00
fix: QueryFailedError when logging user's IPs (#8973)
* fix QueryFailedError when logging user's IPs * use `orIgnore` to fix
This commit is contained in:
parent
111d4d0149
commit
d92200a6d6
1 changed files with 2 additions and 2 deletions
|
@ -68,11 +68,11 @@ export default (endpoint: IEndpoint, ctx: Koa.Context) => new Promise<void>((res
|
|||
}
|
||||
|
||||
try {
|
||||
UserIps.insert({
|
||||
UserIps.createQueryBuilder().insert().values({
|
||||
createdAt: new Date(),
|
||||
userId: user.id,
|
||||
ip: ip,
|
||||
});
|
||||
}).orIgnore(true).execute();
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue