1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-03-17 21:27:52 +02:00

updated code comments and added v0.23.0-rc release notes

This commit is contained in:
Gani Georgiev 2024-10-05 22:01:06 +03:00
parent bc67835de9
commit 292c34ee52
5 changed files with 1215 additions and 1088 deletions

File diff suppressed because it is too large Load Diff

1114
CHANGELOG_16_22.md Normal file

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@ This document describes how to prepare a PR for a change in the main repository.
## Prerequisites
- Go 1.21+ (for making changes in the Go code)
- Go 1.23+ (for making changes in the Go code)
- Node 18+ (for making changes in the Admin UI)
If you haven't already, you can fork the main repository and clone your fork so that you can work locally:

View File

@ -89,7 +89,7 @@ func recordAuthWithOAuth2(e *core.RequestEvent) error {
var authRecord *core.Record
// check for existing relation with the auth record
// check for existing relation with the auth collection
externalAuthRel, err := e.App.FindFirstExternalAuthByExpr(dbx.HashExp{
"collectionRef": form.collection.Id,
"provider": form.Provider,

View File

@ -52,6 +52,9 @@ func (app *BaseApp) LogsStats(expr dbx.Expression) ([]*LogsStatsItem, error) {
}
// DeleteOldLogs delete all requests that are created before createdBefore.
//
// For better performance the logs delete is executed as plain SQL statement,
// aka. no delete model hook events will be fired.
func (app *BaseApp) DeleteOldLogs(createdBefore time.Time) error {
formattedDate := createdBefore.UTC().Format(types.DefaultDateLayout)
expr := dbx.NewExp("[[created]] <= {:date}", dbx.Params{"date": formattedDate})