aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-07-30 11:10:47 -0700
committerAdam Soltys <[email protected]>2022-08-01 22:18:18 -0700
commitf88165f8ffd3f3d39e7ca32af4197462924c84b4 (patch)
tree30c716c737400af4260598fbf64093a038b45a79 /db/models
parentbb9ce0dad5620c97627ed29fafea82111780ee1c (diff)
downloadcoinos-server-f88165f8ffd3f3d39e7ca32af4197462924c84b4.tar.gz
coinos-server-f88165f8ffd3f3d39e7ca32af4197462924c84b4.zip
don't require auth for invoice, default uuid value
Diffstat (limited to 'db/models')
-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,