mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 16:56:39 +00:00
Eslint fix
This commit is contained in:
@@ -24,7 +24,7 @@ export default async function migration() {
|
|||||||
|
|
||||||
await db.execute(sql`ALTER TABLE "userOrgs" ADD COLUMN "autoProvisioned" boolean DEFAULT false;`);
|
await db.execute(sql`ALTER TABLE "userOrgs" ADD COLUMN "autoProvisioned" boolean DEFAULT false;`);
|
||||||
|
|
||||||
let usedNiceIds: string[] = [];
|
const usedNiceIds: string[] = [];
|
||||||
|
|
||||||
for (const resource of resources.rows) {
|
for (const resource of resources.rows) {
|
||||||
// Generate a unique name and ensure it's unique
|
// Generate a unique name and ensure it's unique
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default async function migration() {
|
|||||||
const db = new Database(location);
|
const db = new Database(location);
|
||||||
|
|
||||||
const resourceSiteMap = new Map<number, number>();
|
const resourceSiteMap = new Map<number, number>();
|
||||||
let firstSiteId: number = 1;
|
const firstSiteId: number = 1;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const resources = db
|
const resources = db
|
||||||
@@ -29,7 +29,7 @@ export default async function migration() {
|
|||||||
ALTER TABLE 'userOrgs' ADD 'autoProvisioned' integer DEFAULT false;
|
ALTER TABLE 'userOrgs' ADD 'autoProvisioned' integer DEFAULT false;
|
||||||
`); // this diverges from the schema a bit because the schema does not have a default on niceId but was required for the migration and I dont think it will effect much down the line...
|
`); // this diverges from the schema a bit because the schema does not have a default on niceId but was required for the migration and I dont think it will effect much down the line...
|
||||||
|
|
||||||
let usedNiceIds: string[] = [];
|
const usedNiceIds: string[] = [];
|
||||||
|
|
||||||
for (const resourceId of resources) {
|
for (const resourceId of resources) {
|
||||||
// Generate a unique name and ensure it's unique
|
// Generate a unique name and ensure it's unique
|
||||||
|
|||||||
Reference in New Issue
Block a user