0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

feat(core): insert log into DB (#587)

This commit is contained in:
IceHe.xyz 2022-04-20 12:28:56 +08:00 committed by GitHub
parent 1653d020cf
commit 3dc07312a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,6 @@
import { CreateLog, Logs } from '@logto/schemas';
import { buildInsertInto } from '@/database/insert-into';
import pool from '@/database/pool';
export const insertLog = buildInsertInto<CreateLog>(pool, Logs);