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,7 +1,7 @@
// @flow
import format from "date-fns/format";
import Router from "koa-router";
import uuid from "uuid";
import { v4 as uuidv4 } from "uuid";
import { NotFoundError } from "../errors";
import auth from "../middlewares/authentication";
import { Attachment, Document, Event } from "../models";
@ -28,7 +28,7 @@ router.post("attachments.create", auth(), async (ctx) => {
const { user } = ctx.state;
authorize(user, "createAttachment", user.team);
const s3Key = uuid.v4();
const s3Key = uuidv4();
const acl =
ctx.body.public === undefined
? AWS_S3_ACL

View File

@ -1,6 +1,6 @@
// @flow
import TestServer from "fetch-test-server";
import uuid from "uuid";
import { v4 as uuidv4 } from "uuid";
import app from "../app";
import { buildUser, buildAdmin, buildTeam } from "../test/factories";
import { flushdb } from "../test/support";
@ -81,7 +81,7 @@ describe("#authenticationProviders.update", () => {
const user = await buildAdmin({ teamId: team.id });
await team.createAuthenticationProvider({
name: "google",
providerId: uuid.v4(),
providerId: uuidv4(),
});
const authenticationProviders = await team.getAuthenticationProviders();