added locking mechanism
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user