File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/cli/src/actions/pull Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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` ) ;
You can’t perform that action at this time.
0 commit comments