Skip to content

Commit

Permalink
🚑 remove workflow warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ileostar committed Jul 12, 2024
1 parent b9134fa commit fb2a1bf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ on:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x, 20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
Expand Down
4 changes: 2 additions & 2 deletions apps/server/src/global/providers/db.provider.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { schemas } from '@poster-craft/schema';
import { SchemaType } from '@poster-craft/schema';
import { FactoryProvider } from '@nestjs/common';
import { type MySql2Database } from 'drizzle-orm/mysql2';
import { setupDB } from '../../common/db';

export const DB = Symbol('DB_SERVICE');
export type DbType = MySql2Database<typeof schemas>;
export type DbType = MySql2Database<SchemaType>;

export const DbProvider: FactoryProvider<DbType> = {
provide: DB,
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { work } from "./schema/work";
export * from "./schema/user";
export * from "./schema/work";

export const schemas = {
const schemas = {
user,
work,
};
Expand Down
10 changes: 3 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fb2a1bf

Please sign in to comment.