Skip to content

Commit 281ebbc

Browse files
committed
Fix issue with creating a template.
1 parent d2f29b9 commit 281ebbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handlers/templates/id/post.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export default function templatePostHandler(request, response) {
2626
});
2727
})
2828
.catch(function (error) {
29-
if (error.error === 'ruleNotFound') {
30-
server.templatesController.createRule(request.params.id, body)
29+
if (error.error === 'templateNotFound') {
30+
server.templatesController.createTemplate(request.params.id, body)
3131
.then(function () {
3232
logger.sendSuccessful();
3333
response.send({

0 commit comments

Comments
 (0)