Skip to content

Commit

Permalink
chore: try to fix metadata issue popping up all of a sudden
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Oct 27, 2024
1 parent 61541c5 commit 3060742
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/wellknown-did-issuer/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'
import { DataSource } from 'typeorm'
import wellKnownDidIssuerAgentLogic from './shared/wellKnownDidIssuerAgentLogic'

jest.setTimeout(60000)
jest.setTimeout(30000)

let agent: any
let dbConnection: Promise<DataSource>
Expand Down
2 changes: 1 addition & 1 deletion packages/wellknown-did-issuer/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import wellKnownDidIssuerAgentLogic from './shared/wellKnownDidIssuerAgentLogic'

jest.setTimeout(60000)

const port = 3002
const port = 3435
const basePath = '/agent'

let serverAgent: IAgent
Expand Down
6 changes: 3 additions & 3 deletions packages/wellknown-did-issuer/agent.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 3.0

constants:
baseUrl: http://localhost:3335
port: 3335
baseUrl: http://localhost:3435
port: 3435
methods:
- addLinkedDomainsService
- getDidConfigurationResource
Expand Down Expand Up @@ -41,8 +41,8 @@ dbConnection:
$args:
- items:
- $require: '@veramo/data-store?t=object#Entities'
- $require: './packages/wellknown-did-issuer/dist?t=object#WellknownDidIssuerEntities'
- $require: './packages/data-store?t=object#DataStoreDigitalCredentialEntities'
- $require: './packages/wellknown-did-issuer/dist?t=object#WellknownDidIssuerEntities'

server:
baseUrl:
Expand Down
1 change: 1 addition & 0 deletions packages/wellknown-did-issuer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@veramo/utils": "4.2.0",
"debug": "^4.3.5",
"did-jwt-vc": "3.1.3",
"class-validator": "^0.14.1",
"typeorm": "^0.3.20",
"uuid": "^9.0.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Credential, Identifier, Claim } from '@veramo/data-store'
import { asArray, computeEntryHash, extractIssuer } from '@veramo/utils'
import { Entity, Column, PrimaryColumn, CreateDateColumn, UpdateDateColumn, ManyToMany, JoinTable, BaseEntity } from 'typeorm'

@Entity('DidConfigurationResource')
@Entity('DidConfigurationResourceEntity', {name: 'DidConfigurationResource'})
export class DidConfigurationResourceEntity extends BaseEntity {
@PrimaryColumn({ nullable: false })
origin!: string
Expand Down
1 change: 1 addition & 0 deletions packages/wellknown-did-issuer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { DidConfigurationResourceEntity } from './entities/DidConfigurationResou
*/
const schema = require('../plugin.schema.json')
export { schema }
export { DidConfigurationResourceEntity } from './entities/DidConfigurationResourceEntity'
export { WellKnownDidIssuer } from './agent/WellKnownDidIssuer'
export * from './types/IWellKnownDidIssuer'
export const WellknownDidIssuerEntities = [DidConfigurationResourceEntity]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class CreateWellknownDidIssuer1661165115000 implements MigrationInterface
`CREATE TABLE "DidConfigurationResource" ("origin" varchar NOT NULL, "context" varchar NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_Origin" PRIMARY KEY ("origin"))`,
)
await queryRunner.query(
`CREATE TABLE "DidConfigurationResourceCredentials" ("didConfigurationResourceOrigin" varchar NOT NULL, "credentialHash" varchar NOT NULL)`,
`CREATE TABLE "DidConfigurationResourceCredentials" ("origin" varchar NOT NULL, "credentialHash" varchar NOT NULL)`,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class CreateWellknownDidIssuer1661161799000 implements MigrationInterface
`CREATE TABLE "DidConfigurationResource" ("origin" varchar PRIMARY KEY NOT NULL, "context" varchar NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')))`,
)
await queryRunner.query(
`CREATE TABLE "DidConfigurationResourceCredentials" ("didConfigurationResourceOrigin" varchar NOT NULL, "credentialHash" varchar NOT NULL)`,
`CREATE TABLE "DidConfigurationResourceCredentials" ("origin" varchar NOT NULL, "credentialHash" varchar NOT NULL)`,
)
}

Expand Down
1 change: 1 addition & 0 deletions packages/wellknown-did-issuer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"declarationDir": "dist",
"experimentalDecorators": true,
Expand Down
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3060742

Please sign in to comment.