error-test.service.ts 338 B

1234567891011
  1. import { Injectable } from '@nestjs/common';
  2. import { TransactionalConnection } from '@vendure/core';
  3. @Injectable()
  4. export class ErrorTestService {
  5. constructor(private connection: TransactionalConnection) {}
  6. createDatabaseError() {
  7. return this.connection.rawConnection.query('SELECT * FROM non_existent_table');
  8. }
  9. }