fix errors
This commit is contained in:
parent
3c9fb3d1e7
commit
16695a4b6d
2 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,6 @@ return [
|
|||
'magicSession',
|
||||
'recovery',
|
||||
'invitation',
|
||||
'certificate'
|
||||
],
|
||||
'sms' => [
|
||||
'verification',
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue