Skip to content

Commit

Permalink
fix types for sg cron (#5107)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasey authored Dec 5, 2024
1 parent f99f1ff commit becb2d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/scoutgamecron/src/scripts/createBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ async function createBuilder({ fid, githubLogin }: { fid: number; githubLogin: s
builderStatus: 'applied',
farcasterId: fid,
farcasterName: username,
referralCode: username + Math.random().toString().replace('.', '').slice(0, 6),
githubUser: githubUserDB
? { connect: { id: githubUserDB.id } }
: {
Expand Down
1 change: 1 addition & 0 deletions apps/scoutgamecron/src/scripts/createBuilders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ async function createBuilders() {
update: {},
create: {
displayName,
referralCode: username + Math.random().toString().replace('.', '').slice(0, 6),
path: username,
avatar: avatarUrl,
bio,
Expand Down
1 change: 1 addition & 0 deletions apps/scoutgamecron/src/scripts/createScouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ async function createScouts(farcasterUsernames: string[]) {
update: {},
create: {
displayName,
referralCode: farcasterUsername + Math.random().toString().replace('.', '').slice(0, 6),
path: farcasterUsername,
avatar: avatarUrl,
bio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export async function seedWithRealCharmverseGithubData() {
builder: {
create: {
displayName: builder,
referralCode: builder + Math.random().toString().replace('.', '').slice(0, 6),
path: builder + Math.random().toString().replace('.', '').slice(0, 6),
builderStatus: 'approved',
avatar
Expand All @@ -104,6 +105,7 @@ export async function seedWithRealCharmverseGithubData() {
data: {
builder: {
create: {
referralCode: builder + Math.random().toString().replace('.', '').slice(0, 6),
displayName: builder,
path: builder,
builderStatus: 'approved',
Expand Down

0 comments on commit becb2d0

Please sign in to comment.