This commit is contained in:
Benjamin Toby 2024-12-11 05:50:22 +01:00
parent ad16e42a6c
commit 051c8816e9
3 changed files with 9 additions and 7 deletions

View File

@ -37,13 +37,11 @@
}, },
{ {
"fieldName": "image", "fieldName": "image",
"dataType": "VARCHAR(250)", "dataType": "VARCHAR(250)"
"defaultValue": "/images/user-preset.png"
}, },
{ {
"fieldName": "image_thumbnail", "fieldName": "image_thumbnail",
"dataType": "VARCHAR(250)", "dataType": "VARCHAR(250)"
"defaultValue": "/images/user-preset-thumbnail.png"
}, },
{ {
"fieldName": "address", "fieldName": "address",

View File

@ -128,8 +128,12 @@ module.exports = async function apiCreateUser({
tableName: "users", tableName: "users",
data: { data: {
...payload, ...payload,
image: "/images/user-preset.png", image:
image_thumbnail: "/images/user-preset-thumbnail.png", process.env.DSQL_DEFAULT_USER_IMAGE ||
"/images/user-preset.png",
image_thumbnail:
process.env.DSQL_DEFAULT_USER_IMAGE ||
"/images/user-preset-thumbnail.png",
}, },
useLocal, useLocal,
}); });

View File

@ -1,6 +1,6 @@
{ {
"name": "@moduletrace/datasquirel", "name": "@moduletrace/datasquirel",
"version": "2.9.6", "version": "2.9.7",
"description": "Cloud-based SQL data management tool", "description": "Cloud-based SQL data management tool",
"main": "index.js", "main": "index.js",
"bin": { "bin": {