+import { buildUUID } from '@server/helpers/uuid'
import * as Sequelize from 'sequelize'
-import * as uuidv4 from 'uuid/v4'
async function up (utils: {
transaction: Sequelize.Transaction
{
const authors = await utils.db.Author.findAll()
for (const author of authors) {
- author.uuid = uuidv4()
+ author.uuid = buildUUID()
await author.save()
}
}