refactor: Remove redundant appConfigId from get auth clients mock

This commit is contained in:
Faruk AYDIN
2024-03-26 21:27:38 +01:00
parent 186160ebf4
commit 01ae96840e
2 changed files with 1 additions and 6 deletions

View File

@@ -6,10 +6,6 @@ export async function up(knex) {
export async function down(knex) { export async function down(knex) {
await knex.schema.table('app_auth_clients', (table) => { await knex.schema.table('app_auth_clients', (table) => {
table table.uuid('app_config_id').references('id').inTable('app_configs');
.uuid('app_config_id')
.notNullable()
.references('id')
.inTable('app_configs');
}); });
} }

View File

@@ -1,7 +1,6 @@
const getAppAuthClientsMock = (appAuthClients) => { const getAppAuthClientsMock = (appAuthClients) => {
return { return {
data: appAuthClients.map((appAuthClient) => ({ data: appAuthClients.map((appAuthClient) => ({
appConfigId: appAuthClient.appConfigId,
name: appAuthClient.name, name: appAuthClient.name,
id: appAuthClient.id, id: appAuthClient.id,
active: appAuthClient.active, active: appAuthClient.active,