Browse Source

fix formatting

pull/2594/head
Bernd Storath 2 months ago
parent
commit
e46e904f88
  1. 3
      src/server/api/client/[clientId]/enable.post.ts

3
src/server/api/client/[clientId]/enable.post.ts

@ -15,7 +15,8 @@ export default definePermissionEventHandler(
if (client.expiresAt !== null && new Date() > new Date(client.expiresAt)) { if (client.expiresAt !== null && new Date() > new Date(client.expiresAt)) {
throw createError({ throw createError({
statusCode: 422, statusCode: 422,
statusMessage: 'Client is expired. Please update the expiration date first.', statusMessage:
'Client is expired. Please update the expiration date first.',
message: 'Client is expired. Please update the expiration date first.', message: 'Client is expired. Please update the expiration date first.',
}); });
} }

Loading…
Cancel
Save