Updates
This commit is contained in:
@@ -37,13 +37,11 @@
|
||||
},
|
||||
{
|
||||
"fieldName": "image",
|
||||
"dataType": "VARCHAR(250)",
|
||||
"defaultValue": "/images/user-preset.png"
|
||||
"dataType": "VARCHAR(250)"
|
||||
},
|
||||
{
|
||||
"fieldName": "image_thumbnail",
|
||||
"dataType": "VARCHAR(250)",
|
||||
"defaultValue": "/images/user-preset-thumbnail.png"
|
||||
"dataType": "VARCHAR(250)"
|
||||
},
|
||||
{
|
||||
"fieldName": "address",
|
||||
|
||||
@@ -128,8 +128,12 @@ module.exports = async function apiCreateUser({
|
||||
tableName: "users",
|
||||
data: {
|
||||
...payload,
|
||||
image: "/images/user-preset.png",
|
||||
image_thumbnail: "/images/user-preset-thumbnail.png",
|
||||
image:
|
||||
process.env.DSQL_DEFAULT_USER_IMAGE ||
|
||||
"/images/user-preset.png",
|
||||
image_thumbnail:
|
||||
process.env.DSQL_DEFAULT_USER_IMAGE ||
|
||||
"/images/user-preset-thumbnail.png",
|
||||
},
|
||||
useLocal,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user