Skip to content

Commit 1c8983c

Browse files
saidMsushantdhiman
authored andcommitted
change: use const for model definition (sequelize#643)
1 parent 42296c2 commit 1c8983c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/models/model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
module.exports = (sequelize, DataTypes) => {
4-
var <%= name %> = sequelize.define('<%= name %>', {
4+
const <%= name %> = sequelize.define('<%= name %>', {
55
<% attributes.forEach(function(attribute, index) { %>
66
<%= attribute.fieldName %>: DataTypes.<%= attribute.dataFunction ? `${attribute.dataFunction.toUpperCase()}(DataTypes.${attribute.dataType.toUpperCase()})` : attribute.dataType.toUpperCase() %>
77
<%= (Object.keys(attributes).length - 1) > index ? ',' : '' %>

0 commit comments

Comments
 (0)