Removed old models files that caused problems with login.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2024-09-15 19:40:49 +03:00
parent 2727651897
commit 50f3316088
2 changed files with 0 additions and 147 deletions

View file

@ -1,46 +0,0 @@
import { ReactiveCache } from '/imports/reactiveCache';
import { Meteor } from 'meteor/meteor';
import { FilesCollection } from 'meteor/ostrio:files';
import { isFileValid } from './fileValidation';
import { createBucket } from './lib/grid/createBucket';
import fs from 'fs';
import path from 'path';
if (Meteor.isServer) {
AvatarsOld = createBucket('cfs_gridfs.avatars');
/*
AvatarsOld = new FS.Collection('avatars', {
stores: [new FS.Store.GridFS('avatars')],
filter: {
maxSize: 72000,
allow: {
contentTypes: ['image/*'],
},
},
});
function isOwner(userId, file) {
return userId && userId === file.userId;
}
AvatarsOld.allow({
insert: isOwner,
update: isOwner,
remove: isOwner,
download() {
return true;
},
fetch: ['userId'],
});
AvatarsOld.files.before.insert((userId, doc) => {
doc.userId = userId;
});
*/
};
export default AvatarsOld;