feat: endpoint impl.

This commit is contained in:
2024-12-30 23:29:09 +01:00
parent d2b299c83b
commit ad3e40ee3c
14 changed files with 552 additions and 33 deletions

View File

@ -15,6 +15,10 @@ export class TtnGatewayReceptionRepository {
return await TtnGatewayReception.create(data);
}
public async createMany(data: Partial<TtnGatewayReception>[]) {
return await TtnGatewayReception.bulkCreate(data);
}
public async update(id: string, data: Partial<TtnGatewayReception>) {
const gatewayReception = await this.findById(id);
if (gatewayReception) {

View File

@ -15,6 +15,10 @@ export class WifiScanRepository {
return await WifiScan.create(data);
}
public async createMany(data: Partial<WifiScan>[]) {
return await WifiScan.bulkCreate(data);
}
public async update(id: string, data: Partial<WifiScan>) {
const wifiScan = await this.findById(id);
if (wifiScan) {