fix(backend): Typo when saving patterns
This commit is contained in:
parent
63aae59dcc
commit
2c7223ae19
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,8 @@ PatternModel.prototype.guardedCreate = async function ({ body, user }) {
|
||||||
setId: body.set ? body.set : null,
|
setId: body.set ? body.set : null,
|
||||||
settings: {
|
settings: {
|
||||||
...body.settings,
|
...body.settings,
|
||||||
measurements: body.settings.measurements === 'object' ? body.settings.measurements : {},
|
measurements:
|
||||||
|
typeof body.settings.measurements === 'object' ? body.settings.measurements : {},
|
||||||
},
|
},
|
||||||
userId: user.uid,
|
userId: user.uid,
|
||||||
name: typeof body.name === 'string' && body.name.length > 0 ? body.name : '--',
|
name: typeof body.name === 'string' && body.name.length > 0 ? body.name : '--',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue