mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
Adding new Admin UI. Updating Fredy to V3.0.0 as it has been a large rewrite. Thanks for all contributions and help on the way!
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
const db = {};
|
|
|
|
exports.setKnownListings = (jobKey, providerId, listings) => {
|
|
if (!Array.isArray(listings)) throw Error('Not a valid array');
|
|
|
|
db[providerId] = listings;
|
|
};
|
|
|
|
exports.getKnownListings = (jobKey, providerId) => {
|
|
return db[providerId] || [];
|
|
};
|