u
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import sql from 'mssql';
|
||||
import { isDemoMode } from '../demo/mode.js';
|
||||
import { getDemoDeletedEntityList } from '../demo/store.js';
|
||||
import { getPool } from '../db.js';
|
||||
|
||||
const DELETED_ENTITY_LIST_SQL = `
|
||||
@@ -12,6 +14,10 @@ ORDER BY lastChanged ASC;
|
||||
`;
|
||||
|
||||
export async function getDeletedEntityList({ cursor = 0, limit = 600 } = {}) {
|
||||
if (isDemoMode()) {
|
||||
return getDemoDeletedEntityList({ cursor, limit });
|
||||
}
|
||||
|
||||
const result = await getPool()
|
||||
.request()
|
||||
.input('cursor', sql.BigInt, cursor)
|
||||
|
||||
Reference in New Issue
Block a user