feat: reworked ttn webhook endpoint logic
This commit is contained in:
@ -10,8 +10,6 @@ export class LpTtnEndDeviceUplinks extends Model {
|
||||
public dev_addr!: string;
|
||||
public received_at_utc!: Date;
|
||||
public battery!: number;
|
||||
public latitude!: number;
|
||||
public longitude!: number;
|
||||
public created_at_utc!: Date;
|
||||
public updated_at_utc!: Date;
|
||||
}
|
||||
@ -30,35 +28,21 @@ LpTtnEndDeviceUplinks.init(
|
||||
},
|
||||
application_ids: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
},
|
||||
dev_eui: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
},
|
||||
join_eui: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
},
|
||||
dev_addr: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
},
|
||||
received_at_utc: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: true,
|
||||
},
|
||||
battery: {
|
||||
type: DataTypes.NUMBER,
|
||||
allowNull: true,
|
||||
},
|
||||
latitude: {
|
||||
type: DataTypes.NUMBER,
|
||||
allowNull: true,
|
||||
},
|
||||
longitude: {
|
||||
type: DataTypes.NUMBER,
|
||||
allowNull: true,
|
||||
},
|
||||
created_at_utc: {
|
||||
type: DataTypes.DATE,
|
||||
|
Reference in New Issue
Block a user