1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

fix errors

This commit is contained in:
Damodar Lohani 2023-04-17 08:04:52 +00:00
parent 3c9fb3d1e7
commit 16695a4b6d
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,6 @@ return [
'magicSession',
'recovery',
'invitation',
'certificate'
],
'sms' => [
'verification',

View file

@ -1698,7 +1698,7 @@ App::patch('/v1/projects/:projectId/templates/email/:type/:locale')
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_PROJECT)
->param('projectId', '', new UID(), 'Project unique ID.')
->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type')
->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type')
->param('locale', '', fn($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes'])
->param('senderName', '', new Text(255), 'Name of the email sender')
->param('senderEmail', '', new Email(), 'Email of the sender')
@ -1786,7 +1786,7 @@ App::get('/v1/projects/:projectId/templates/email/:type/:locale')
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_EMAIL_TEMPLATE)
->param('projectId', '', new UID(), 'Project unique ID.')
->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type')
->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type')
->param('locale', '', new Text(6), 'Template locale')
->inject('response')
->inject('dbForConsole')