diff --git a/src/rest-api/query.ts b/src/rest-api/query.ts index 087c518..4f465f4 100644 --- a/src/rest-api/query.ts +++ b/src/rest-api/query.ts @@ -46,6 +46,10 @@ export class QueryBuilder { return this; } + limitAll() { + return this.limit(500) + } + build(): string { let query = ""; query += this.whereConditions.join(" and ") + " "; diff --git a/src/rest-api/車室情報2.ts b/src/rest-api/車室情報2.ts index aafadde..1fb320e 100644 --- a/src/rest-api/車室情報2.ts +++ b/src/rest-api/車室情報2.ts @@ -16,6 +16,8 @@ export const get車室情報一覧 = async ({ 車室番号, }: get車室情報一覧オプション): Promise<車室情報2[]> => { const builder = new QueryBuilder(); + + builder.limitAll(); if (駐車場名) { builder.where(車室情報2フィールド名.駐車場名, 駐車場名); }