Added designers

This commit is contained in:
Niklas Fondberg
2021-04-08 23:11:24 +02:00
parent 2b57afbc4a
commit 3c648cee29
18 changed files with 366 additions and 151 deletions
+4
View File
@@ -9,6 +9,10 @@ export class BaseSQLDataSource extends SQLDataSource {
this.cache = config.cache || new InMemoryLRUCache();
}
getSQLDate(date: Date): string {
return date.toISOString().split('T')[0];
}
async cacheQuery(ttl = 5, query) {
const cacheKey = crypto
.createHash('sha1')