Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
samunohito committed Jan 29, 2025
1 parent f7f287b commit aa7b953
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/backend/src/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { MiAuthSession } from '@/models/AuthSession.js';
import { MiBlocking } from '@/models/Blocking.js';
import { MiChannelFollowing } from '@/models/ChannelFollowing.js';
import { MiChannelFavorite } from '@/models/ChannelFavorite.js';
import { MiChannelMuting } from "@/models/ChannelMuting.js";
import { MiChannelMuting } from '@/models/ChannelMuting.js';
import { MiClip } from '@/models/Clip.js';
import { MiClipNote } from '@/models/ClipNote.js';
import { MiClipFavorite } from '@/models/ClipFavorite.js';
Expand Down Expand Up @@ -107,11 +107,7 @@ function truncateSql(sql: string) {
}

function printReplicationMode(sql: string, queryRunner?: QueryRunner) {
if (this.printReplicationMode && queryRunner) {
return `[${queryRunner.getReplicationMode()}] ${sql}`;
} else {
return message;
}
return queryRunner ? `[${queryRunner.getReplicationMode()}] ${sql}` : sql;
}

function stringifyParameter(param: any) {
Expand Down

0 comments on commit aa7b953

Please sign in to comment.