aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-07-30 11:10:47 -0700
committerAdam Soltys <[email protected]>2022-07-30 11:10:47 -0700
commit82f9acc60b7edbdfee96f1553d0fb1dcc705b866 (patch)
treefa31b0dbc9dfe152b85180fc59e2a537f18f1e03 /db
parentf56bf4375e30ce7b8569d9e259fcdd89922fef3d (diff)
downloadcoinos-server-82f9acc60b7edbdfee96f1553d0fb1dcc705b866.tar.gz
coinos-server-82f9acc60b7edbdfee96f1553d0fb1dcc705b866.zip
don't require auth for invoice, default uuid value
Diffstat (limited to 'db')
-rw-r--r--db/models/invoices.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/models/invoices.js b/db/models/invoices.js
index a51ee3f9..324da9ad 100644
--- a/db/models/invoices.js
+++ b/db/models/invoices.js
@@ -76,7 +76,7 @@ const attributes = {
uuid: {
type: DataTypes.STRING(255),
allowNull: true,
- defaultValue: null,
+ defaultValue: DataTypes.UUIDV4,
primaryKey: false,
autoIncrement: false,
comment: null,