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 03973f7 commit 155c8e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class OfficialPluginInitService implements OnModuleInit {
.$queryRawUnsafe<
unknown[]
>(this.knex('attachments').select('token').where('token', id).forUpdate().toString());
if (rows.length > 0) {
if (rows.length === 0) {
await this.prismaService.txClient().attachments.create({
data: {
token: id,
Expand Down

0 comments on commit 155c8e6

Please sign in to comment.