|
|
@ -44,13 +44,13 @@ export default class Audit implements AuditType { |
|
|
|
forceAwait: process.env['TEST'] === 'true', |
|
|
|
forceAwait: process.env['TEST'] === 'true', |
|
|
|
} |
|
|
|
} |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
const insertAudit = async () => { |
|
|
|
if (!audit.project_id && audit.fk_model_id) { |
|
|
|
if (!audit.project_id && audit.fk_model_id) { |
|
|
|
audit.project_id = ( |
|
|
|
audit.project_id = ( |
|
|
|
await Model.getByIdOrName({ id: audit.fk_model_id }, ncMeta) |
|
|
|
await Model.getByIdOrName({ id: audit.fk_model_id }, ncMeta) |
|
|
|
).project_id; |
|
|
|
).project_id; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const insertAudit = async () => { |
|
|
|
|
|
|
|
return await ncMeta.metaInsert2(null, null, MetaTable.AUDIT, { |
|
|
|
return await ncMeta.metaInsert2(null, null, MetaTable.AUDIT, { |
|
|
|
user: audit.user, |
|
|
|
user: audit.user, |
|
|
|
ip: audit.ip, |
|
|
|
ip: audit.ip, |
|
|
|