Skip to content

Commit

Permalink
🩹 Upserting isWhitelisted
Browse files Browse the repository at this point in the history
  • Loading branch information
PsicoThePato committed Oct 16, 2024
1 parent 6ea44b3 commit 1f78351
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/commune-worker/src/db/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { SQL, Table } from "@commune-ts/db";
import type { GovernanceModeType } from "@commune-ts/types";
import { getTableColumns, sql } from "@commune-ts/db";
import { getTableColumns, is, sql } from "@commune-ts/db";

Check failure on line 3 in apps/commune-worker/src/db/index.ts

View workflow job for this annotation

GitHub Actions / lint

'is' is defined but never used. Allowed unused vars must match /^_/u
import { db } from "@commune-ts/db/client";
import {
cadreSchema,
Expand Down Expand Up @@ -142,6 +142,7 @@ export async function upsertModuleData(modules: Module[]) {
totalStaked: m.totalStaked,
totalStakers: m.totalStakers,
totalRewards: m.totalRewards,
isWhitelisted: m.isWhitelisted,
})),
)
.onConflictDoUpdate({
Expand All @@ -159,6 +160,7 @@ export async function upsertModuleData(modules: Module[]) {
"totalStaked",
"totalStakers",
"totalRewards",
"isWhitelisted"
]),
})
.execute();
Expand Down

0 comments on commit 1f78351

Please sign in to comment.