From 1b36959d17e74e52d57f20b90f6753905426d24a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Wed, 4 Oct 2023 14:53:11 +0200 Subject: [PATCH] fix: fix formatting --- src/schemas.js | 20 ++++++++++---------- src/server/index.js | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/schemas.js b/src/schemas.js index be826ac..8b5a1b2 100644 --- a/src/schemas.js +++ b/src/schemas.js @@ -216,24 +216,24 @@ export const claimSchema = { type: 'object', properties: { profileName: { - type: "string", - description: "Account name to display in the user interface" + type: 'string', + description: 'Account name to display in the user interface' }, profileUrl: { - type: ["string", "null"], - description: "Profile URL to link to in the user interface" + type: ['string', 'null'], + description: 'Profile URL to link to in the user interface' }, proofUrl: { - type: ["string", "null"], - description: "Proof URL to link to in the user interface" + type: ['string', 'null'], + description: 'Proof URL to link to in the user interface' }, serviceProviderName: { - type: ["string", "null"], - description: "Name of the service provider to display in the user interface" + type: ['string', 'null'], + description: 'Name of the service provider to display in the user interface' }, serviceProviderId: { - type: ["string", "null"], - description: "Id of the service provider" + type: ['string', 'null'], + description: 'Id of the service provider' } } } diff --git a/src/server/index.js b/src/server/index.js index 176196c..3edd263 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -224,7 +224,7 @@ const processAspProfile = async (/** @type {import('doipjs').Profile */ profile) // Overwrite avatarUrl // TODO: don't overwrite avatarUrl once it's fully supported profile.personas[profile.primaryPersonaIndex].avatarUrl = - `https://${process.env.DICEBEAR_API_HOSTNAME || "api.dicebear.com" }/7.x/shapes/svg?seed=${profile.publicKey.fingerprint}&size=128` + `https://${process.env.DICEBEAR_API_HOSTNAME || 'api.dicebear.com'}/7.x/shapes/svg?seed=${profile.publicKey.fingerprint}&size=128` return profile }