mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: randomstring dep does not work in browser with rolldown-vite (#9624)
* fix: randomstring dep does not work in browser with rolldown-vite * fix: Last usage of randomstring, docs * feedback
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Context, Next } from "koa";
|
||||
import Router from "koa-router";
|
||||
import randomstring from "randomstring";
|
||||
import { randomString } from "@shared/random";
|
||||
import userInviter, { Invite } from "@server/commands/userInviter";
|
||||
import env from "@server/env";
|
||||
import Logger from "@server/logging/Logger";
|
||||
@@ -33,7 +33,7 @@ router.post(
|
||||
const invites = Array(Math.min(count, 100))
|
||||
.fill(0)
|
||||
.map(() => {
|
||||
const rando = randomstring.generate(10);
|
||||
const rando = randomString(10);
|
||||
|
||||
return {
|
||||
email: `${rando}@example.com`,
|
||||
|
||||
Reference in New Issue
Block a user