Upgraded dependencies, bumped to Node 24.
This commit is contained in:
+3
-2
@@ -1,9 +1,9 @@
|
||||
import config from 'config';
|
||||
import { parse } from 'yaml';
|
||||
|
||||
import { knexOwner as knex } from './knex.js';
|
||||
// import { curateStash } from './stashes.js';
|
||||
import { HttpError } from './errors.js';
|
||||
import { knexOwner as knex } from './knex.js';
|
||||
|
||||
function curateTemplate(template) {
|
||||
return {
|
||||
@@ -90,7 +90,8 @@ export async function createTemplate(template, reqUser) {
|
||||
|
||||
try {
|
||||
parse(template.template);
|
||||
} catch (error) {
|
||||
}
|
||||
catch (error) {
|
||||
throw new HttpError(`Invalid YAML: ${error.message}`, 400);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user