groton-school / knowledgebase

Knowledgebase website
https://kb.groton.org
GNU General Public License v3.0
0 stars 0 forks source link

version of reset-permissions that resets only recent uploads #32

Closed github-actions[bot] closed 1 month ago

github-actions[bot] commented 1 month ago

https://github.com/groton-school/knowledgebase/blob/662b16fce9fb7558783b5c0fe11a501a7c25c9ae/apps/indexer/bin/reset-permissions.ts#L8


import fs from 'fs';
import path from 'path';

// TODO why does reset-permissions need to run separately from upload?
// TODO version of reset-permissions that resets only recent uploads

const defaultIndexPath = path.resolve(__dirname, '../../router/var/index.json');

const options = {