작업중

This commit is contained in:
2023-08-06 08:03:29 +00:00
parent 2b27b8b427
commit 7352cdbf23
6 changed files with 161 additions and 32 deletions
+7 -16
View File
@@ -1,6 +1,6 @@
import 'dotenv/config';
import 'reflect-metadata';
import { BasicQueryDTO } from './api/index.js';
import { BasicQueryDTO } from './api/serverImpl.js';
import { validate } from 'class-validator';
import express, { type Request, type Response } from "express"
import { AppDataSource } from "./data_source.js"
@@ -21,22 +21,13 @@ export async function test() {
console.log(result);
//must be integer가 나타나야함
const rawRng = new LiteHashDRBG(simpleSerialize(
'haha',
'hoho'
));
const arr: Promise<Uint8Array>[] = [];
let j = 0;
for(let i = 0; i < 100; i += 1){
arr.push(rawRng.nextBits(32).then((v) => {
console.log(`${j}: ${i}`);
j += 1;
return v;
}));
const abc= {
a: 1,
b: 2,
c: 3,
}
await Promise.all(arr);
const t2 = await validate(abc);
console.log(t2);
}