mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
Use pg pub/sub for stateless app notification
This commit is contained in:
@@ -5,7 +5,7 @@ import { TrackedEntity } from '../utils/TrackedEntity.entity';
|
||||
@Entity()
|
||||
export class BlocksEntity extends TrackedEntity {
|
||||
|
||||
@PrimaryGeneratedColumn()
|
||||
@PrimaryGeneratedColumn({type: 'bigint'})
|
||||
id: number;
|
||||
|
||||
@Column()
|
||||
|
||||
@@ -8,7 +8,7 @@ import { TrackedEntity } from '../utils/TrackedEntity.entity';
|
||||
@Index(["clientId", "time"])
|
||||
export class ClientStatisticsEntity extends TrackedEntity {
|
||||
|
||||
@PrimaryGeneratedColumn()
|
||||
@PrimaryGeneratedColumn({type: 'bigint'})
|
||||
id: number;
|
||||
|
||||
@Column({ length: 62, type: 'varchar' })
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
||||
@Entity()
|
||||
export class HomeGraphEntity {
|
||||
|
||||
@PrimaryGeneratedColumn()
|
||||
@PrimaryGeneratedColumn({type: 'bigint'})
|
||||
id: number;
|
||||
|
||||
@Column({ type: 'bigint' })
|
||||
|
||||
@@ -12,7 +12,7 @@ export class RpcBlockService {
|
||||
) {
|
||||
|
||||
}
|
||||
public getBlock(blockHeight: number) {
|
||||
public getSavedBlockTemplate(blockHeight: number) {
|
||||
return this.rpcBlockRepository.findOne({
|
||||
where: { blockHeight }
|
||||
});
|
||||
|
||||
@@ -5,7 +5,7 @@ import { TrackedEntity } from '../utils/TrackedEntity.entity';
|
||||
@Entity()
|
||||
export class TelegramSubscriptionsEntity extends TrackedEntity {
|
||||
|
||||
@PrimaryGeneratedColumn()
|
||||
@PrimaryGeneratedColumn({type: 'bigint'})
|
||||
id: number;
|
||||
|
||||
@Index()
|
||||
|
||||
Reference in New Issue
Block a user