diff --git a/server/src/database/pad.ts b/server/src/database/pad.ts index f41d9789..57f9c3dc 100644 --- a/server/src/database/pad.ts +++ b/server/src/database/pad.ts @@ -89,7 +89,7 @@ export default class DatabasePads { await Promise.all([data.id, data.writeId, data.adminId].map(async (id) => { if (await this.padIdExists(id)) - throw new Error("ID '" + data.id + "' is already taken."); + throw new Error("ID '" + id + "' is already taken."); })); const createdObj = await this.PadModel.create(data);