added locking mechanism
Some checks failed
backend-admin-action / build-image (push) Failing after 38s
backend-action / build-image (push) Successful in 7m35s

This commit is contained in:
2024-06-08 10:04:49 +07:00
parent b28aae201a
commit 3d6de91dc8
3 changed files with 58 additions and 4 deletions

View File

@@ -48,13 +48,11 @@ async function main() {
await create_user();
await create_relation();
console.log("a");
const allUser = await db.query.user.findMany({
with: {
userToSelection: { with: { selection: true } },
},
});
console.log("b");
for (const u of allUser) {
console.log(
u.firstName,
@@ -118,6 +116,7 @@ async function create_user() {
job: "",
education: "",
zone: thisDistrict.id,
rank: newUser.rank,
});
}
}