ИК
Size: a a a
ИК
AK
ИК
D
ИР
ИК
АП
AK
AK
АТ
АП
BK
const { error: codeError, data } = generateClassCode();
if (codeError) return Boom.badRequest('Something wrong with code generation');
const { error: foundCodeError, data: foundCode } = await tryCatch(Klass.findOne({ where: { code: data.generatedKlassCode.toString() } }));
if (foundCodeError) return Boom.badRequest('Something wrong with code finding');
if (foundCode) return Boom.conflict(`Code ${foundCode.code} already exists`);¿
A
AL
EP
ПЛ
N
ПЛ
‹