Skip to content

Commit 76b5aa8

Browse files
committed
fix: typo
1 parent a235498 commit 76b5aa8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli/src/actions/pull/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,12 @@ export function syncTable({
268268
);
269269
}
270270

271-
const uniqieColumns = table.columns.filter((c) => c.unique && !c.pk).map((c) => c.name);
272-
if (uniqieColumns.length > 0) {
271+
const uniqueColumns = table.columns.filter((c) => c.unique && !c.pk).map((c) => c.name);
272+
if (uniqueColumns.length > 0) {
273273
modelFactory.addAttribute((builder) =>
274274
builder.setDecl(modelUniqueAttribute).addArg((argBuilder) => {
275275
const arrayExpr = argBuilder.ArrayExpr;
276-
uniqieColumns.forEach((c) => {
276+
uniqueColumns.forEach((c) => {
277277
const ref = modelFactory.node.fields.find((f) => getDbName(f) === c);
278278
if (!ref) {
279279
throw new Error(`Field ${c} not found`);

0 commit comments

Comments
 (0)