refactor: Remove redundant appConfigId from get auth clients mock
This commit is contained in:
@@ -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');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user