Skip to content

Commit

Permalink
fix: oops forgot to look at console
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 committed Apr 11, 2024
1 parent 80c944f commit b03bda6
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions apps/anvil/src/seeder/seeds/users.seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,17 @@ export async function seedUsers(dbService: EdgeDBService) {
userAgreement.length > 0
? userAgreement[0]
: await dbService.query(
e.update(e.sign_in.SignInReason, (reason) => ({
filter_single: e.op(reason.category, "=", e.sign_in.SignInReasonCategory.PERSONAL_PROJECT),
set: {
agreement: e.insert(e.sign_in.Agreement, {
content: readFileSync(ua, { encoding: "utf-8" }),
content_hash: computeFileHash(ua),
}),
},
})),
e.assert_exists(
e.update(e.sign_in.SignInReason, (reason) => ({
filter_single: e.op(reason.category, "=", e.sign_in.SignInReasonCategory.PERSONAL_PROJECT),
set: {
agreement: e.insert(e.sign_in.Agreement, {
content: readFileSync(ua, { encoding: "utf-8" }),
content_hash: computeFileHash(ua),
}),
},
})).agreement,
),
);

const rep_agreement =
Expand Down

0 comments on commit b03bda6

Please sign in to comment.