mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 19:02:45 +00:00
feat: measure and display user quota (#72)
This commit is contained in:
@@ -46,8 +46,14 @@ const AnonymizedRepositorySchema = new Schema({
|
||||
default: new Date(),
|
||||
},
|
||||
size: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
storage: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
file: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -34,7 +34,10 @@ export interface IAnonymizedRepository {
|
||||
};
|
||||
pageView: number;
|
||||
lastView: Date;
|
||||
size: number;
|
||||
size: {
|
||||
storage: number;
|
||||
file: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IAnonymizedRepositoryDocument
|
||||
|
||||
Reference in New Issue
Block a user