Skip to content

Commit

Permalink
Merge pull request #6 from ks-labs/fix/corrige-testes
Browse files Browse the repository at this point in the history
✅ (Tests) Atualiza configurações de inicialização
  • Loading branch information
victorLessa committed Apr 25, 2024
2 parents c66165a + 76b9579 commit 962d2f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Functional/createAudit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ export default async function ({
ip = request?.ip() ?? null
}

// Pluralize and snackCase user entityName

console.error('=====', getUserEntityName(auth.user))

// get user data to store
const userId = get(auth, 'user.id', null)
// save audit
Expand Down
3 changes: 3 additions & 0 deletions test/audit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ test.group('Auto preload', (group) => {
@column()
public userId: number | null = null

@column()
public userEntityName: string

/** Entity Id */
@column()
public auditableId: string | null
Expand Down

0 comments on commit 962d2f4

Please sign in to comment.