fix: uuid import broken by dep bump 🤦‍♂️

This commit is contained in:
Tom Moor
2021-04-25 12:54:06 -07:00
parent 2d22399bbc
commit 6de793e94e
10 changed files with 29 additions and 29 deletions

View File

@ -1,5 +1,5 @@
// @flow
import uuid from "uuid";
import { v4 as uuidv4 } from "uuid";
import {
Share,
Team,
@ -42,7 +42,7 @@ export function buildTeam(overrides: Object = {}) {
authenticationProviders: [
{
name: "slack",
providerId: uuid.v4(),
providerId: uuidv4(),
},
],
...overrides,
@ -84,7 +84,7 @@ export async function buildUser(overrides: Object = {}) {
authentications: [
{
authenticationProviderId: authenticationProvider.id,
providerId: uuid.v4(),
providerId: uuidv4(),
},
],
...overrides,

View File

@ -1,5 +1,5 @@
// @flow
import uuid from "uuid";
import { v4 as uuidv4 } from "uuid";
import { User, Document, Collection, Team } from "../models";
import { sequelize } from "../sequelize";
@ -23,7 +23,7 @@ export const seed = async () => {
authenticationProviders: [
{
name: "slack",
providerId: uuid.v4(),
providerId: uuidv4(),
},
],
},
@ -45,7 +45,7 @@ export const seed = async () => {
authentications: [
{
authenticationProviderId: authenticationProvider.id,
providerId: uuid.v4(),
providerId: uuidv4(),
},
],
},
@ -64,7 +64,7 @@ export const seed = async () => {
authentications: [
{
authenticationProviderId: authenticationProvider.id,
providerId: uuid.v4(),
providerId: uuidv4(),
},
],
},