Skip to content

Commit 789abcf

Browse files
committed
fix: lint fix
1 parent c179182 commit 789abcf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export function syncEnums({
5555
.addArg((a) => a.StringLiteral.setValue(dbEnum.schema_name)),
5656
);
5757
}
58-
} catch (_error: unknown) {
58+
} catch (error: any) {
59+
if (error?.message !== `Declaration not found: @@schema`) throw error;
5960
//Waiting to support multi-schema
6061
//TODO: remove catch after multi-schema support is implemented
6162
}
@@ -362,7 +363,8 @@ export function syncTable({
362363
b.setDecl(getAttributeRef('@@schema', services)).addArg((a) => a.StringLiteral.setValue(table.schema)),
363364
);
364365
}
365-
} catch (_error: unknown) {
366+
} catch (error: any) {
367+
if (error?.message !== `Declaration not found: @@schema`) throw error;
366368
//Waiting to support multi-schema
367369
//TODO: remove catch after multi-schema support is implemented
368370
}

0 commit comments

Comments
 (0)