Skip to content

Commit

Permalink
fix: init plugin conflict on e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-w committed Sep 14, 2024
1 parent 8e7b4d8 commit e35e526
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class OfficialPluginInitService implements OnModuleInit {
.txClient()
.$queryRawUnsafe<
unknown[]
>(this.knex('attachments').select('token').where('token', id).forUpdate().toString());
>(this.knex('attachments').select('token').where('token', id).forUpdate().toQuery());
if (rows.length === 0) {
await this.prismaService.txClient().attachments.create({
data: {
Expand Down Expand Up @@ -116,7 +116,7 @@ export class OfficialPluginInitService implements OnModuleInit {
.txClient()
.$queryRawUnsafe<
unknown[]
>(this.knex('plugin').select('name').where('id', pluginId).forUpdate().toString());
>(this.knex('plugin').select('name').where('id', pluginId).forUpdate().toQuery());

if (rows.length > 0) {
const { hashedSecret, maskedSecret } = await generateSecret(secret);
Expand Down

0 comments on commit e35e526

Please sign in to comment.